[Bug bootstrap/97105] [11 regression] dumpfile.c:169:33: error: storage size of 'optgroup_options' isn't known

2020-09-18 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97105

--- Comment #6 from CVS Commits  ---
The master branch has been updated by Jakub Jelinek :

https://gcc.gnu.org/g:4a5ff2b56bfea0b3e154a15e809c5c42dc3b9e9f

commit r11-3292-g4a5ff2b56bfea0b3e154a15e809c5c42dc3b9e9f
Author: Jakub Jelinek 
Date:   Sat Sep 19 00:09:11 2020 +0200

c++: Add testcase for already fixed PR97105

This has been fixed by the PR bootstrap/97118 fix.

2020-09-19  Jakub Jelinek  

PR c++/97105
* g++.dg/template/pr97105.C: New test.

[Bug bootstrap/97105] [11 regression] dumpfile.c:169:33: error: storage size of 'optgroup_options' isn't known

2020-09-18 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97105

Jakub Jelinek  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Jakub Jelinek  ---
Fixed by the PR97118 fix.

[Bug bootstrap/97105] [11 regression] dumpfile.c:169:33: error: storage size of 'optgroup_options' isn't known

2020-09-18 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97105

--- Comment #5 from Jakub Jelinek  ---
Ah, Jason has committed a fix already, against the other PR.  I'll commit the
testcase and close this PR.

[Bug bootstrap/97105] [11 regression] dumpfile.c:169:33: error: storage size of 'optgroup_options' isn't known

2020-09-18 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97105

--- Comment #4 from Jakub Jelinek  ---
>From what I can see, when doing pushdecl of the extern a declaration the
VAR_DECL is pushed into incomplete_vars, then when seeing the definition
pushdecl is called again and during duplicate_decls it is turned into no longer
DECL_EXTERNAL, but the type hasn't been instantiated yet.  Then start_decl
calls start_decl_1 which calls complete_decl and that sees an incomplete type
that can't be completed and errors.
One way out of this might be not call layout_var_decl if !COMPLETE_TYPE_P
(type).
Another one might be to let start_decl_1 record in some global variable that it
is processing (if it is) a variable with [] array and let complete_vars skip
that var.

[Bug bootstrap/97105] [11 regression] dumpfile.c:169:33: error: storage size of 'optgroup_options' isn't known

2020-09-18 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97105

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek  ---
Reduced testcase:
template  struct A {};
extern const A<0> a[];
const A<0> a[] = {};

[Bug bootstrap/97105] [11 regression] dumpfile.c:169:33: error: storage size of 'optgroup_options' isn't known

2020-09-18 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97105

Dominique d'Humieres  changed:

   What|Removed |Added

 CC||hjl.tools at gmail dot com

--- Comment #2 from Dominique d'Humieres  ---
*** Bug 97118 has been marked as a duplicate of this bug. ***

[Bug bootstrap/97105] [11 regression] dumpfile.c:169:33: error: storage size of 'optgroup_options' isn't known

2020-09-18 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97105

Richard Biener  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 CC||jason at gcc dot gnu.org
   Target Milestone|--- |11.0
   Keywords||build
   Last reconfirmed||2020-09-18
 Status|UNCONFIRMED |NEW

--- Comment #1 from Richard Biener  ---
Confirmed, caused by g:f627125855075f7ffde74e48481ee961f0bc4c7b

[Bug bootstrap/97105] [11 regression] dumpfile.c:169:33: error: storage size of 'optgroup_options' isn't known

2020-09-18 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97105

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P1