gcc/testsuite/g++.dg/modules/using-31_a.C
raw| 1 | // PR c++/120414 |
| 2 | // { dg-additional-options "-fmodules" } |
| 3 | // { dg-module-cmi m } |
| 4 | |
| 5 | export module m; |
| 6 | |
| 7 | template <int n> |
| 8 | struct Base { |
| 9 | static constexpr int base_static_mbr_n = n; |
| 10 | }; |
| 11 | |
| 12 | template <int n> |
| 13 | struct Derived : Base<n> { |
| 14 | using Base<n>::base_static_mbr_n; |
| 15 | static constexpr int go(int x = base_static_mbr_n) { return x; } |
| 16 | }; |
| 17 | |
| 18 | template struct Derived<1>; |