[Bug c++/89217] [9 Regression] ICE tree check: expected constructor, have error_mark in split_nonconstant_init_1

2019-02-17 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89217 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/89217] [9 Regression] ICE tree check: expected constructor, have error_mark in split_nonconstant_init_1

2019-02-17 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89217 --- Comment #7 from Marek Polacek --- Author: mpolacek Date: Sun Feb 17 16:52:40 2019 New Revision: 268969 URL: https://gcc.gnu.org/viewcvs?rev=268969=gcc=rev Log: PR c++/89217 - ICE with list-initialization in range-based for loop.

[Bug c++/89217] [9 Regression] ICE tree check: expected constructor, have error_mark in split_nonconstant_init_1

2019-02-07 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89217 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #6 from Marek Polacek

[Bug c++/89217] [9 Regression] ICE tree check: expected constructor, have error_mark in split_nonconstant_init_1

2019-02-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89217 --- Comment #5 from Marek Polacek --- ...which means that we should most likely deal with REFERENCE_REF_P in case COMPONENT_REF in tsubst_copy_and_build. Testing a patch.

[Bug c++/89217] [9 Regression] ICE tree check: expected constructor, have error_mark in split_nonconstant_init_1

2019-02-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89217 --- Comment #4 from Marek Polacek --- Some sort of modification happens twice for the RANGE_FOR_EXPR. Originally we have {*((struct S *) this)->r} which should be turned to TARGET_EXPR r}> but we now reprocess this again and get bogus

[Bug c++/89217] [9 Regression] ICE tree check: expected constructor, have error_mark in split_nonconstant_init_1

2019-02-06 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89217 Richard Biener changed: What|Removed |Added Keywords||error-recovery, |