This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: problem with statement expressions in template class constructors?
- To: piumarta at prof dot inria dot fr
- Subject: Re: problem with statement expressions in template class constructors?
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Sat, 25 Apr 1998 08:36:24 +0200
- CC: egcs-bugs at cygnus dot com
- References: <199804250056.CAA21849@prof.inria.fr>
> 1. Apologies if this has already been mentioned -- there's so much
> traffic here that I can seldom keep up.
There is no need to apologize, it is perfectly reasonable if different
people report the same bug many times.
> // g++ -c bug.cc
> // g++ -DEXHIBIT_BUG -c bug.cc
>
> #ifdef EXHIBIT_BUG
> template <class arg_t>
> #endif
> class Bug { public:
> Bug(void) { ({ 0; }); }
> };
egcs 1.0 is basically frozen; there won't be any patches for that.
However, the current egcs development snapshots compile this without
complaints. You may want to download one of those, e.g. 19980418.
These snapshots will also be the foundation of a future release 1.1.
Regards,
Martin