[Bug c++/105595] Coroutines can trigger -Wsubobject-linkage

2024-11-13 Thread dennis-hezel at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595 --- Comment #9 from dennis-hezel at gmx dot de --- Yes it is also true for functions in anon namespace inside header. Again, I am not so concerned with getting all of those scenarios perfectly fixed. Like you were saying, it probably requires som

[Bug c++/105595] Coroutines can trigger -Wsubobject-linkage

2024-08-06 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595 --- Comment #8 from Arsen Arsenović --- indeed, but that's also true for the functions, no?

[Bug c++/105595] Coroutines can trigger -Wsubobject-linkage

2024-08-06 Thread dennis-hezel at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595 --- Comment #7 from dennis-hezel at gmx dot de --- I am perfectly happy with a fix just for coroutines! I do not have any code that contains your reproducer. It would also be a code smell: struct Y defined inside cpp file but not in anon namespa

[Bug c++/105595] Coroutines can trigger -Wsubobject-linkage

2024-08-06 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595 Arsen Arsenović changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/105595] Coroutines can trigger -Wsubobject-linkage

2024-08-06 Thread dennis-hezel at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595 --- Comment #5 from dennis-hezel at gmx dot de --- > naturally, if you never include this file twice, it should be okay That is exactly the point. Whenever a file with your `namespace { struct X {}; }` example or the coroutine example is include

[Bug c++/105595] Coroutines can trigger -Wsubobject-linkage

2024-07-31 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595 --- Comment #4 from Arsen Arsenović --- hm, actually, is this valid code? in https://eel.is/c++draft/basic.def.odr#15 the standard says: For any definable item D with definitions in multiple translation units, - (15.1) if D is a non-inline non

[Bug c++/105595] Coroutines can trigger -Wsubobject-linkage

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug c++/105595] Coroutines can trigger -Wsubobject-linkage

2022-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/105595] Coroutines can trigger -Wsubobject-linkage

2022-11-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595 Andrew Pinski changed: What|Removed |Added CC||dennis-hezel at gmx dot de --- Comment