[Bug c++/114990] Compiler errors in compiling a module-based app

2024-07-03 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 --- Comment #18 from Jason Merrill --- (In reply to cqwrteur from comment #17) > But does that apply to classes, templates or template specialization, etc.? Yes, everything that you would define in a header. > If someone writes a function=dele

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-07-02 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 --- Comment #17 from cqwrteur --- (In reply to Jason Merrill from comment #16) > (In reply to cqwrteur from comment #15) > > But it is not declaration, but definition. The actual implementation > > duplicates twice. > > Definitions are also mer

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-07-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 --- Comment #16 from Jason Merrill --- (In reply to cqwrteur from comment #15) > But it is not declaration, but definition. The actual implementation > duplicates twice. Definitions are also merged. > For translation units, inline function wil

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-07-02 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 --- Comment #15 from cqwrteur --- (In reply to Jason Merrill from comment #13) > > The question is still how this library could work. The same simply > > absolutely conflicts. Unless the standard allows inline to be discarded > > across modules

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-07-02 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 --- Comment #14 from cqwrteur --- (In reply to Jason Merrill from comment #13) > > The question is still how this library could work. The same simply > > absolutely conflicts. Unless the standard allows inline to be discarded > > across modules

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-07-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 --- Comment #13 from Jason Merrill --- > The question is still how this library could work. The same simply > absolutely conflicts. Unless the standard allows inline to be discarded > across modules I don't see how this could work. It works bec

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-07-02 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 --- Comment #12 from cqwrteur --- (In reply to Jason Merrill from comment #10) > (In reply to cqwrteur from comment #9) > > (In reply to Jason Merrill from comment #8) > > > bar.cppm:4:20: error: conflicting declaration of ‘void foo()’ in module

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-07-02 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 --- Comment #11 from cqwrteur --- (In reply to Jason Merrill from comment #10) > (In reply to cqwrteur from comment #9) > > (In reply to Jason Merrill from comment #8) > > > bar.cppm:4:20: error: conflicting declaration of ‘void foo()’ in module

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-07-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 --- Comment #10 from Jason Merrill --- (In reply to cqwrteur from comment #9) > (In reply to Jason Merrill from comment #8) > > bar.cppm:4:20: error: conflicting declaration of ‘void foo()’ in module > > ‘bar’ > > 4 | export inline void foo

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-07-02 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 --- Comment #9 from cqwrteur --- (In reply to Jason Merrill from comment #8) > bar.cppm:4:20: error: conflicting declaration of ‘void foo()’ in module ‘bar’ > 4 | export inline void foo() noexcept; > |^~~ > In file

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-07-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 --- Comment #8 from Jason Merrill --- bar.cppm:4:20: error: conflicting declaration of ‘void foo()’ in module ‘bar’ 4 | export inline void foo() noexcept; |^~~ In file included from bar.cppm:2: someheader.hpp:1:13:

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-07-01 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 --- Comment #7 from cqwrteur --- (In reply to Jason Merrill from comment #6) > (In reply to cqwrteur from comment #5) > > > > Is this a C++ standard defect? There is no inline definition for classes and > > templates that allow multiple definit

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-07-01 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org Ever confi

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-07-01 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 --- Comment #5 from cqwrteur --- (In reply to Patrick Palka from comment #3) > I reckon it's not something we can fix/implement in a point release of GCC > 14, but hopefully for 15... Is this a C++ standard defect? There is no inline definition

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-07-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 Jonathan Wakely changed: What|Removed |Added CC||unlvsur at live dot com --- Comment #

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-05-11 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 --- Comment #3 from Patrick Palka --- I reckon it's not something we can fix/implement in a point release of GCC 14, but hopefully for 15...

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-05-08 Thread admin at hexadigm dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 --- Comment #2 from Larry Smith --- Thanks for the (very) fast turn-around (!). I'll look into the situation over the coming days and reply further (so if you can keep the issue alive for now, thanks). Just briefly though, can you (or anyone) co

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-05-08 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org Depen