http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45957
Summary: [4.6 Regression] g++.dg/ext/fnname3.C FAILs with
-flto/-fwhopr
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 22010
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22010
reduced testcase
Output:
$ g++ pr45957.C
$ ./a.out && echo OK
OK
$ g++ pr45957.C -flto
$ ./a.out && echo OK
Tested revisions:
r165220 - fail
r165152 - OK
It seems __func__ evaluates to empty string in both cases (constructor and
destructor).