https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91933
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2019-09-30 CC| |jakub at gcc dot gnu.org, | |jason at gcc dot gnu.org, | |mpolacek at gcc dot gnu.org Target Milestone|10.0 |8.4 Summary|[10 Regression] ICE: tree |[8/9/10 Regression] ICE: |check: expected class |tree check: expected class |'type', have 'exceptional' |'type', have 'exceptional' |(error_mark) in |(error_mark) in |build_simple_base_path, at |build_simple_base_path, at |cp/class.c:541 |cp/class.c:541 Ever confirmed|0 |1 --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- ICE started with r253266. Plus of course, if the testcase is valid, we need to fix that too. The original testcase allows such non-odr-use accesses to variables from containing functions, as long as they don't have mutable members.