This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Does GCC 3.4 fix this bug?


Hi Nathan,

>quux is a function taking a (pointer to function taking no args, returning a Foo) argument and returning a Bar

I realize that's what the compiler is interpreting it as.  But I believe that the compiler's interpretation of the code is incorrect.

MSVC (that bastion of standards compliance -- NOT!), and CodeWarrior interpret the code as the variable quux using the const Foo& constructor of Bar.

I don't have the EDG compiler at my disposal, and my Comeau C++ compiler is from 1990 (*grin*).

--Eljay



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