πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.lang.c++
Article #336

"static enum"-Problem bei g++

#336
From: Stephan Voit
Date: Tue, 29 Aug 1995 17:21
21 lines
1248 bytes
Warum gibt der GNU-C++-Compiler 2.6.3 unter Linux 1.2.x den Fehler
"storage class specified for typename" bei folgendem Konstrukt aus:

class A{
	static enum {i=1};
};

Ohne "static" funktioniert das einwandfrei.
Borland 4.5 und Centerline (Unix) schlucken das ohne Probleme.

Viele Grüße
_____________________________________________________________________________
                             ___
Stephan Voit                /    /        /
Universit"at GH Essen      /__ _/_ __ __ /_ __    ___________________________
FB 5/Wirtschaftsinformatik   / /  /_// // /__//| /   Tel (0201) 810 03-32
____________________________/ /_ /_ /_// //_// |/   FAX (0201) 810 03-48
Altendorfer Str. 97-101            /               e-mail:
D-45143 Essen                     /               voit@wi-inf.uni-essen.de
_____________________________________________________________________________
Technical Details
Message-ID: <41viaa$b8r@sun1.uni-essen.de>
Path: arc1-ca.pugleaf.net!sun1.hrz.uni-essen.de!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sun1.hrz.uni-essen.de!news
From: voit@wi-inf.uni-essen.de (Stephan Voit)
Newsgroups: de.comp.lang.c++
Subject: "static enum"-Problem bei g++
Date: 29 Aug 1995 17:21:14 GMT
Organization: Universitaet Essen
Message-ID: <41viaa$b8r@sun1.uni-essen.de>
Reply-To: voit@wi-inf.uni-essen.de
NNTP-Posting-Host: hsun2.wi-inf.uni-essen.de