c++/6351: GCC dosn't compile a correct code.
nathan@gcc.gnu.org
nathan@gcc.gnu.org
Fri Apr 26 09:06:00 GMT 2002
Synopsis: GCC dosn't compile a correct code.
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Fri Apr 26 07:49:39 2002
State-Changed-Why:
the code is illformed, but the error wrong. g++ 3.0
reports
nathan@manao:162>g++ -c 6351.ii
6351.ii:9: enumerator value for `MY_MAX' not integer constant
6351.ii: In function `TypeA operator+(const TypeA&, const TypeB&) [with TypeA =
<anonymous enum>, TypeB = int]':
6351.ii:9: instantiated from here
6351.ii:4: no match for `<anonymous enum>& += const int&' operator
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6351
More information about the Gcc-bugs
mailing list