[Bug c/102821] Tentative definition of variable with internal linkage has incomplete non-array type: missing diagnostics

2021-10-18 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102821

Joseph S. Myers  changed:

   What|Removed |Added

 Resolution|--- |DUPLICATE
 Status|NEW |RESOLVED

--- Comment #3 from Joseph S. Myers  ---
This is in a Semantics section of the standard, not Constraints, so no
diagnostic is required, but as a quality-of-implementation matter we should
diagnose it.

*** This bug has been marked as a duplicate of bug 88727 ***

[Bug c/102821] Tentative definition of variable with internal linkage has incomplete non-array type: missing diagnostics

2021-10-18 Thread pavel.morozkin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102821

--- Comment #2 from Pavel M  ---
Addition to "Notes" above.

3. C11, 5.1.1.3 Diagnostics, 1:
> A conforming implementation shall produce at least one diagnostic message 
> (identified in an implementation-defined manner) if a preprocessing 
> translation unit or translation unit contains a violation of any syntax rule 
> or constraint, even if the behavior is also explicitly specified as undefined 
> or implementation-defined.

[Bug c/102821] Tentative definition of variable with internal linkage has incomplete non-array type: missing diagnostics

2021-10-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102821

Andrew Pinski  changed:

   What|Removed |Added

   Last reconfirmed||2021-10-18
 Ever confirmed|0   |1
 Status|UNCONFIRMED |NEW

--- Comment #1 from Andrew Pinski  ---
Confirmed.