blob: 75bd87285e1992ff689064e7411cfd9cf8510485 [file] [log] [blame]
// PR c++/120414
// { dg-additional-options "-fmodules" }
// { dg-module-cmi m }
export module m;
template <int n>
struct Base {
static constexpr int base_static_mbr_n = n;
};
template <int n>
struct Derived : Base<n> {
using Base<n>::base_static_mbr_n;
static constexpr int go(int x = base_static_mbr_n) { return x; }
};
template struct Derived<1>;