[Bug c++/71966] [7 Regression] ICE on invalid C++11 code (undefined constructor used in a constant expression): in cp_build_addr_expr_1, at cp/typeck.c:5671
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 2 13:50:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71966
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Doesn't ICE starting with r239267 anymore.
struct A
{
constexpr A (int);
constexpr operator int () const { return 0; }
int c;
};
template <int>
struct B {};
constexpr A a = 0;
B<a> b;
still ICEs though.
More information about the Gcc-bugs
mailing list