[Bug 799066] Re: Parsing issue: Instance reinterpreted as function-pointer something

2011-07-06 Thread Hendrik Lönngren
On further thought, I see that g++ allows "A()" as a shortcut for "A(*)()", so it confuses "B b(A());" with a function declaration. As this might be as designed, I am closing this bug. But still, I think that this code should be perfectly legal. Also, the compiler error would be much clearer if

[Bug 799066] Re: Parsing issue: Instance reinterpreted as function-pointer something

2011-07-06 Thread Hendrik Lönngren
** Changed in: gcc-4.4 (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/799066 Title: Parsing issue: Instance reinterpreted as function-pointer something To mana

[Bug 799066] Re: Parsing issue: Instance reinterpreted as function-pointer something

2011-06-18 Thread Hendrik Lönngren
** Attachment added: "test.cpp" https://bugs.launchpad.net/bugs/799066/+attachment/2173798/+files/test.cpp -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/799066 Title: Parsing issue: Instance rein