This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67549] internal compiler error: in fold_binary_loc
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 Sep 2015 11:33:34 +0000
- Subject: [Bug c++/67549] internal compiler error: in fold_binary_loc
- Auto-submitted: auto-generated
- References: <bug-67549-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67549
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Known to work| |4.9.0
Resolution|--- |FIXED
Known to fail| |4.8.5
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
With GCC 4.9 I need -fpermissive to even build on x86_64:
> g++-4.9 -S t.C -std=c++11
t.C:6:42: error: âconstexprâ needed for in-class initialization of static data
member âvoid (B::* B::ptr_func)(int)â of non-integral type [-fpermissive]
static T_PTRFUNC ptr_func = &B::elem_func;
^
with -fpermissive it works. I can reproduce the ICE on x86_64 with GCC 4.8.5.
Thus I assume it is fixed with GCC 4.9 and up.