Re: Problem with use of anonymous types

2005-05-07 Thread Andrew Pinski
On May 7, 2005, at 6:40 PM, Gabriel Dos Reis wrote: "Julian Cummings" <[EMAIL PROTECTED]> writes: | Hmmm... I just read through the bug reports you cited. Sounds to me like | this is still somewhat of an open issue, as to whether the compiler should | issue an error in these cases or simply sile

Re: Problem with use of anonymous types

2005-05-07 Thread Gabriel Dos Reis
"Julian Cummings" <[EMAIL PROTECTED]> writes: | Hmmm... I just read through the bug reports you cited. Sounds to me like | this is still somewhat of an open issue, as to whether the compiler should | issue an error in these cases or simply silently discard any templated | function as a possible m

Re: Problem with use of anonymous types

2005-05-07 Thread Gabriel Dos Reis
Andrew Pinski <[EMAIL PROTECTED]> writes: | On May 6, 2005, at 8:09 PM, Julian Cummings wrote: | | > People are reporting trouble compiling blitz with gcc-4.0.0, and the | > compiler errors are resulting from the use of unnamed enums. A | > simple code | > illustrates the problem: | > | > stru

RE: Problem with use of anonymous types

2005-05-06 Thread Julian Cummings
ge- > From: Andrew Pinski [mailto:[EMAIL PROTECTED] > Sent: Friday, May 06, 2005 5:09 PM > To: Julian Cummings > Cc: gcc-bugs@gcc.gnu.org > Subject: Re: Problem with use of anonymous types > > > On May 6, 2005, at 8:09 PM, Julian Cummings wrote: > > > Pe

Re: Problem with use of anonymous types

2005-05-06 Thread Andrew Pinski
On May 6, 2005, at 8:09 PM, Julian Cummings wrote: People are reporting trouble compiling blitz with gcc-4.0.0, and the compiler errors are resulting from the use of unnamed enums. A simple code illustrates the problem: struct nullType {}; template inline T operator+(const T& a, nullType) {

Problem with use of anonymous types

2005-05-06 Thread Julian Cummings
People are reporting trouble compiling blitz with gcc-4.0.0, and the compiler errors are resulting from the use of unnamed enums. A simple code illustrates the problem: struct nullType {}; template inline T operator+(const T& a, nullType) { return a; } enum named { namedA = 1, namedB = 2 }