--- Comment #5 from pinskia at gcc dot gnu dot org 2006-01-30 12:59 ---
Close as a dup of bug 9217.
*** This bug has been marked as a duplicate of 9217 ***
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-01-30 12:59 ---
Reopening to ...
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
Status
--- Comment #3 from Don at Skyler dot com 2006-01-30 12:39 ---
Subject: Re: Initializing using methods of class object passed to constructor
On 30 Jan 2006 10:29:01 -, you wrote:
>
>
>--- Comment #2 from rguenth at gcc dot gnu dot org 2006-01-30 10:29
>---
>D d(Ini
--- Comment #2 from rguenth at gcc dot gnu dot org 2006-01-30 10:29 ---
D d(Initializer());
parses as a function declaration, as you see from the error (which is on
the cout line btw.):
// bug.cpp: In function `int main()':
// bug.cpp:35: error: request for member `i_'
--- Comment #1 from Don at Skyler dot com 2006-01-30 05:30 ---
Somehow when I copied and pasted the first line in main came out wrong; it
should be:
D d(Initializer());
which produces the apparently incorrect error as noted.
--
http://gcc.gnu.org/bugzilla/show_bug.cg