Bug 47604 - GCC doesn't accept "auto *f() -> int", but only accepts "auto f() -> int".
Summary: GCC doesn't accept "auto *f() -> int", but only accepts "auto f() -> int".
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.6.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-03 22:39 UTC by Johannes Schaub
Modified: 2011-02-10 10:54 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Schaub 2011-02-03 22:39:40 UTC
GCC does not like the following

   auto *f() -> int;

"error: 'f' function with late return type has 'auto*' as its type rather than plain 'auto'"

Nothing in N3225 forbids that, AFAICS. See also http://llvm.org/bugs/show_bug.cgi?id=9132
Comment 1 Johannes Schaub 2011-02-10 10:54:15 UTC
I have been mistaken. The declaration "auto *f() -> int;" does not conform to the syntax.