[Bug c/88477] Variable with type completed in initializer not allowed.

2018-12-18 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88477 Anders Granlund changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/88477] Variable with type completed in initializer not allowed.

2018-12-17 Thread jsm28 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88477 Joseph S. Myers changed: What|Removed |Added CC||sasho648 at gmail dot com --- Comment

[Bug c/88477] Variable with type completed in initializer not allowed.

2018-12-16 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88477 --- Comment #4 from Anders Granlund --- In general the standard seems to be a bit inprecise when it talks about types beeing complete. The same type may be incomplete at one point in the program, but complete at another point. The standard

[Bug c/88477] Variable with type completed in initializer not allowed.

2018-12-13 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88477 --- Comment #3 from joseph at codesourcery dot com --- I'm referring to C17 6.7.9#3, in the constraints for initializers.

[Bug c/88477] Variable with type completed in initializer not allowed.

2018-12-12 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88477 --- Comment #2 from Anders Granlund --- To what part of the standard are you refering to? This is what I found and it allows the given program: C11 standard 6.7.7: https://port70.net/~nsz/c/c11/n1570.html#6.7p7

[Bug c/88477] Variable with type completed in initializer not allowed.

2018-12-12 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88477 --- Comment #1 from joseph at codesourcery dot com --- I'd argue that the constraint "The type of the entity to be initialized shall be an array of unknown size or a complete object type that is not a variable length array type." must be