http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51405
Bug #: 51405
Summary: Passing method result to constructor treated as
function declaration
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRME
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51405
--- Comment #1 from Ievgen Mukhin 2011-12-04
01:54:05 UTC ---
Sorry, i was wrong when I wrote that test case compiles on 4.2.4.
4.2.4 throws compilation error as it should: error: base operand of ‘->’ has
non-pointer type ‘B’
But newer versions d