https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64248
Bug ID: 64248 Summary: Error: declarator-id missing; using reserved word ‘__FUNCTION__’ Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: theubik at mail dot ru Created attachment 34236 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34236&action=edit gcc -v output class A { public: A(const char* str) {}; }; class B { public: B(A a) {}; }; int main() { B b(A(__FUNCTION__)); return 0; } > gcc main.cpp main.cpp: In function ‘int main()’: main.cpp:15:22: error: declarator-id missing; using reserved word ‘__FUNCTION__’ B b(A(__FUNCTION__)); ^ gcc was built from snapshot http://gcc.skazkaforyou.com/snapshots/5-20141207/ os Linux ubik 3.2.0-70-generic #105-Ubuntu SMP Wed Sep 24 19:49:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux