PR c++/78373 - ICE with TREE_CONSTANT reference
authorJason Merrill <jason@redhat.com>
Wed, 16 Nov 2016 22:42:24 +0000 (17:42 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 16 Nov 2016 22:42:24 +0000 (17:42 -0500)
commit46b2baa723df876837763f269717413d04a226e0
treef3a4b93a42b0d4a6d52610ed1b0c016684d17afc
parent2ec15cba58bfe91bf91c536f5360c05a5b12794a
PR c++/78373 - ICE with TREE_CONSTANT reference

* decl.c (cp_finish_decl): Don't set TREE_CONSTANT on a reference.
* typeck2.c (store_init_value): Likewise.

From-SVN: r242523
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/typeck2.c
gcc/testsuite/g++.dg/opt/pr78373.C [new file with mode: 0644]