diff options
author | Marek Polacek <polacek@redhat.com> | 2019-02-17 16:52:40 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2019-02-17 16:52:40 +0000 |
commit | 1f6857ba5608f715621cfe8d3c3be31b3040e9e6 (patch) | |
tree | 9dee916ca3c34d2ac5f7cf385af30f3daf880f59 /gcc/gcc.c | |
parent | b43e6340c80f3ae0ddf70950a8f979f4791c3252 (diff) | |
download | gcc-1f6857ba5608f715621cfe8d3c3be31b3040e9e6.zip gcc-1f6857ba5608f715621cfe8d3c3be31b3040e9e6.tar.gz gcc-1f6857ba5608f715621cfe8d3c3be31b3040e9e6.tar.bz2 |
PR c++/89217 - ICE with list-initialization in range-based for loop.
* constexpr.c (unshare_constructor): No longer static.
* cp-tree.h (unshare_constructor): Declare.
* semantics.c (finish_compound_literal): When dealing with a
non-dependent expression in a template, return the original
expression. Pass LOOKUP_NO_NARROWING to digest_init_flags.
* g++.dg/cpp0x/range-for37.C: New test.
From-SVN: r268969
Diffstat (limited to 'gcc/gcc.c')
0 files changed, 0 insertions, 0 deletions