This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/9103: problems constructing from temporaries


>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 ()()'


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]