[Bug c++/65625] [5 Regression] ICE in make_typename_type, at cp/decl.c:3499

2015-04-02 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65625

--- Comment #7 from Jason Merrill jason at gcc dot gnu.org ---
Author: jason
Date: Thu Apr  2 16:43:02 2015
New Revision: 221842

URL: https://gcc.gnu.org/viewcvs?rev=221842root=gccview=rev
Log:
PR c++/65625
* decl.c (make_typename_type): Handle seeing a variable template.

Added:
trunk/gcc/testsuite/g++.dg/cpp1y/var-templ23.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c


[Bug c++/65625] [5 Regression] ICE in make_typename_type, at cp/decl.c:3499

2015-04-02 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65625

Jason Merrill jason at gcc dot gnu.org changed:

   What|Removed |Added

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

--- Comment #8 from Jason Merrill jason at gcc dot gnu.org ---
Fixed.


[Bug c++/65625] [5 Regression] ICE in make_typename_type, at cp/decl.c:3499

2015-04-01 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65625

Jason Merrill jason at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |jason at gcc dot gnu.org


[Bug c++/65625] [5 Regression] ICE in make_typename_type, at cp/decl.c:3499

2015-04-01 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65625

--- Comment #6 from Jason Merrill jason at gcc dot gnu.org ---
(In reply to Richard Biener from comment #5)
 Not error-recovery - P1.

I would think P2, since the testcase is ill-formed.


[Bug c++/65625] [5 Regression] ICE in make_typename_type, at cp/decl.c:3499

2015-03-31 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65625

Richard Biener rguenth at gcc dot gnu.org changed:

   What|Removed |Added

   Priority|P3  |P1

--- Comment #5 from Richard Biener rguenth at gcc dot gnu.org ---
Not error-recovery - P1.


[Bug c++/65625] [5 Regression] ICE in make_typename_type, at cp/decl.c:3499

2015-03-30 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65625

--- Comment #3 from Martin Liška marxin at gcc dot gnu.org ---
g++ 4.8.3 output:

/home/marxin/Programming/seastar/1.ii:3:26: error: template declaration of ‘int
std::declval’
  template typename int declval;
  ^
/home/marxin/Programming/seastar/1.ii:5:16: error: ‘declval’ in namespace ‘std’
does not name a type
  typename std::declvalint a;
^
/home/marxin/Programming/seastar/1.ii:5:23: error: expected unqualified-id
before ‘’ token
  typename std::declvalint a;

[Bug c++/65625] [5 Regression] ICE in make_typename_type, at cp/decl.c:3499

2015-03-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65625

Richard Biener rguenth at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords||ice-on-invalid-code
   Target Milestone|--- |5.0

--- Comment #1 from Richard Biener rguenth at gcc dot gnu.org ---
Can you make the testcase valid and still ICE?


[Bug c++/65625] [5 Regression] ICE in make_typename_type, at cp/decl.c:3499

2015-03-30 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65625

--- Comment #2 from Martin Liška marxin at gcc dot gnu.org ---
(In reply to Richard Biener from comment #1)
 Can you make the testcase valid and still ICE?

The issue is caused just in case of invalid code.

Martin

[Bug c++/65625] [5 Regression] ICE in make_typename_type, at cp/decl.c:3499

2015-03-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65625

Marek Polacek mpolacek at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-03-30
 CC||mpolacek at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #4 from Marek Polacek mpolacek at gcc dot gnu.org ---
Started with r214396.