This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80840] [7/8 Regression] ICE in convert_nontype_argument reference to double
- 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, 31 May 2017 17:53:52 +0000
- Subject: [Bug c++/80840] [7/8 Regression] ICE in convert_nontype_argument reference to double
- Auto-submitted: auto-generated
- References: <bug-80840-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80840
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed May 31 17:53:20 2017
New Revision: 248755
URL: https://gcc.gnu.org/viewcvs?rev=248755&root=gcc&view=rev
Log:
PR c++/80840 - ICE with constexpr and reference
* pt.c (convert_nontype_argument): Don't test whether a decl is
value-dependent when binding to a reference.
Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/template/ref10.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/pt.c