]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/87554 - ICE with extern template and reference member.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Apr 2019 16:50:10 +0000 (16:50 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Apr 2019 16:50:10 +0000 (16:50 +0000)
commit849a7926848082c390a6d4bdc1b02f672fea5ed9
treeac99b51ca4bd9983b3b21fb9ef944874630a6da6
parentdec23fe5814ee585d3ba367465abfae0373613bc
PR c++/87554 - ICE with extern template and reference member.

The removed code ended up setting DECL_INITIAL to the INIT_EXPR returned by
split_nonconstant_init, which makes no sense.  This code was added back in
1996, so any rationale is long lost.

* decl.c (cp_finish_decl): Don't set DECL_INITIAL of external vars.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@270445 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/cpp0x/extern_template-5.C [new file with mode: 0644]