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
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?
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595
Arsen Arsenović changed:
What|Removed |Added
See Also||https://gcc.gnu.org/bugzill
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595
Arsen Arsenović changed:
What|Removed |Added
CC||arsen at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Ever confirmed|0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595
Andrew Pinski changed:
What|Removed |Added
CC||dennis-hezel at gmx dot de
--- Comment