This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80991] ICE with __is_trivially_constructible in template
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Jun 2017 08:01:57 +0000
- Subject: [Bug c++/80991] ICE with __is_trivially_constructible in template
- Auto-submitted: auto-generated
- References: <bug-80991-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80991
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-06-07
CC| |jason at gcc dot gnu.org,
| |marxin at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
ICE started with r215738, before that it was rejected:
pr80991.cpp: In function ‘void foo()’:
pr80991.cpp:3:46: error: expected primary-expression before ‘int’
static_assert(__is_trivially_constructible(int, int), "");
^
pr80991.cpp:3:51: error: expected primary-expression before ‘int’
static_assert(__is_trivially_constructible(int, int), "");
^
pr80991.cpp:3:54: error: there are no arguments to
‘__is_trivially_constructible’ that depend on a template parameter, so a
declaration of ‘__is_trivially_constructible’ must be available [-fpermissive]
static_assert(__is_trivially_constructible(int, int), "");
^
pr80991.cpp:3:54: note: (if you use ‘-fpermissive’, G++ will accept your code,
but allowing the use of an undeclared name is deprecated)
pr80991.cpp: In instantiation of ‘void foo() [with bool <anonymous> = true]’:
pr80991.cpp:8:13: required from here
pr80991.cpp:3:45: error: ‘__is_trivially_constructible’ was not declared in
this scope
static_assert(__is_trivially_constructible(int, int), "");
^