[Bug c++/47604] New: GCC doesn't accept "auto *f() -> int", but only accepts "auto f() -> int".
schaub.johannes at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Thu Feb 3 22:39:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47604
Summary: GCC doesn't accept "auto *f() -> int", but only
accepts "auto f() -> int".
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: schaub.johannes@googlemail.com
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
More information about the Gcc-bugs
mailing list