Compile error: classes and typedefs

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Wed Jun 30 23:07:00 GMT 1999


> Ok. Should I start adapting code to this bug now (~300 occurences)
> or is it likely to be fixed in the next release ?

It will not be fixed anytime soon. What kind of action you take is up
to you, of course.
> Almost. Doing that gave:
> 
>   color.cpp:15: no matching function for call to `Group::Group (Obj)'
>   color.cpp:10: candidates are: Group::Group(const Obj &, const Obj &)
>   color.cpp:11:                 Group::Group(const Group &)
>   color.cpp:15: parse error before `)'
> 
> The solution is:
> 
>     Group group((Obj(Int(1))), (Obj(Int(1))));

Ah. I tried with gcc 2.95: It is happy with only the first set of
parentheses.

Regards,
Martin



More information about the Gcc-bugs mailing list