This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/46289] [4.6 regression] ICE in build_constexpr_constructor_member_initializers, at cp/semantics.c:5513
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 3 Nov 2010 16:59:42 +0000
- Subject: [Bug c++/46289] [4.6 regression] ICE in build_constexpr_constructor_member_initializers, at cp/semantics.c:5513
- Auto-submitted: auto-generated
- References: <bug-46289-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46289
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2010-11-03 16:59:34 UTC ---
(In reply to comment #3)
> mutex() : _M_mutex(PTHREAD_MUTEX_INIT) { }
>
> which is not portable.
Actually, it should work. Here's a reduced testcase:
struct A
{
int i[2];
};
struct B
{
A a;
constexpr B(): a({{1,2}}) { }
};