This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problem with statement expressions in template class constructors?


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]