https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113129
Pilar Latiesa <pilarlatiesa at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pilarlatiesa at gmail dot com
--- Comment #4 from Pilar Latiesa <pilarlatiesa at gmail dot com> ---
$ cat Consts.h
#ifndef CONSTS_H
#define CONSTS_H
namespace Consts
{
inline constexpr int Test_v = 120;
}
#endif
$ cat Consts.cppm
module;
#include "Consts.h"
export module Consts;
export namespace Consts
{
using Consts::Test_v;
}
$ cat Main.cpp
#include <iostream>
import Consts;
int main()
{
std::cout << Consts::Test_v;
return 0;
}
$ g++ -std=c++20 -fmodules-ts -x c++ -c Consts.cppm
$ g++ -std=c++20 -fmodules-ts Consts.o Main.cpp
Main.cpp: In function ‘int main()’:
Main.cpp:7:26: error: ‘Test_v’ is not a member of ‘Consts’
7 | std::cout << Consts::Test_v;
| ^~~~~~
N.B. I also believe is a dup of pr109679