This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51405] Passing method result to constructor treated as function declaration
- From: "muhineg at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 04 Dec 2011 01:54:05 +0000
- Subject: [Bug c++/51405] Passing method result to constructor treated as function declaration
- Auto-submitted: auto-generated
- References: <bug-51405-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51405
--- Comment #1 from Ievgen Mukhin <muhineg at gmail dot com> 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 don't produce this error.