This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/9103: problems constructing from temporaries
- From: darryl dot green at unitab dot com dot au
- To: gcc-gnats at gcc dot gnu dot org
- Date: 30 Dec 2002 05:42:13 -0000
- Subject: c++/9103: problems constructing from temporaries
- Reply-to: darryl dot green at unitab dot com dot au
>Number: 9103
>Category: c++
>Synopsis: problems constructing from temporaries
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Sun Dec 29 21:46:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Darryl Green
>Release: gcc version 3.2.1 20020924 (Debian prerelease)
>Organization:
>Environment:
Linux 2.4.19
>Description:
Moderately complex object declaration/construction involving multiple temporaries is not handled correctly - gcc seems to be interpreting it as a function declaration.
Note: fwiw Comeau online and MSVC 7 compile this code.
>How-To-Repeat:
Compile the code. Examine error output.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="results"
Content-Disposition: inline; filename="results"
test.cpp: In function `int main()':
test.cpp:55: request for member `do_stuff' in `user_from_temps()', which is of
non-aggregate type `policy_user ()()'