[Bug c++/79607] [5 Regression] ICE with brace-initialization of static const member

2017-10-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79607

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Jakub Jelinek  ---
Fixed for 5.5, 6.4+ and 7+.

[Bug c++/79607] [5 Regression] ICE with brace-initialization of static const member

2017-09-18 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79607

--- Comment #6 from Jason Merrill  ---
Author: jason
Date: Mon Sep 18 18:34:03 2017
New Revision: 252939

URL: https://gcc.gnu.org/viewcvs?rev=252939=gcc=rev
Log:
PR c++/79607 - ICE with T{} initializer

* decl.c (type_dependent_init_p): Check the type of a CONSTRUCTOR.

Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/template/init11.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/decl.c