#1094907 g++-14: 'using' declarations may cause compiler errors when compiling modules

Package:
g++-14
Source:
g++-14
Description:
GNU C++ compiler
Submitter:
Frank B. Brokken
Date:
2025-02-01 10:12:02 UTC
Severity:
normal
#1094907#5
Date:
2025-02-01 10:08:23 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?

When working on the conversion of existing projectss to projects using modules
the compiler reported an (unclear) error message when compiling a source file
defining a module.

   * What exactly did you do that caused the issue?

First I prepared in /usr/include/c++/14/ filesystem.gcm and memory.gcm,
calling

    g++ --std=c++26 -Wall -fmodules-ts -x c++-system-header filesystem
and
    g++ --std=c++26 -Wall -fmodules-ts -x c++-system-header memory

followed by
    mv gcm.cache/usr/include/c++/14/*.gcm .
so they're located in /usr/include/c++/14/ and can be imported.


Then I wrote this source file (e.g., modsupport.cc, stripped down to its bare
essentials):