diff options
author | Patrick Palka <ppalka@redhat.com> | 2023-04-03 18:49:37 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2023-04-03 18:49:37 -0400 |
commit | c37ed38ada788ae410c48ec6d8c9b5d9f32ab8cf (patch) | |
tree | ed086842ddfca1e4354f5fb116ce07e04e67c423 /gcc/fold-const.cc | |
parent | 78b8eda0a93f6ab254e18008bc4d1094fe4ae606 (diff) | |
download | gcc-c37ed38ada788ae410c48ec6d8c9b5d9f32ab8cf.zip gcc-c37ed38ada788ae410c48ec6d8c9b5d9f32ab8cf.tar.gz gcc-c37ed38ada788ae410c48ec6d8c9b5d9f32ab8cf.tar.bz2 |
c++: ICE with loopy var tmpl auto deduction [PR109300]
Now that we resolve non-dependent variable template-ids ahead of time,
cp_finish_decl needs to handle a new invalid situation: we can end up
trying to instantiate a variable template with deduced type before we
fully parsed its initializer.
PR c++/109300
gcc/cp/ChangeLog:
* decl.cc (cp_finish_decl): Diagnose ordinary auto deduction
with no initializer, instead of asserting.
gcc/testsuite/ChangeLog:
* g++.dg/cpp1y/var-templ79.C: New test.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions