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
** 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
** 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