]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/nondeduced6.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / nondeduced6.C
CommitLineData
943e7063
MP
1// PR c++/89480
2// { dg-do compile { target c++11 } }
3
4template <typename Foo, Foo Part>
5struct TSelect {};
6
7enum What {
8 The
9};
10
11template <typename Foo>
12struct AnotherOneSelector {
13 static constexpr Foo Id = Foo::The;
14};
15
16template <typename Foo, typename SelectPartType>
17struct THelper;
18
19template <typename Foo>
20struct THelper<Foo, TSelect<Foo, Foo{AnotherOneSelector<Foo>::Id}>> {};
21
22int main() {
23 THelper<What, TSelect<What, What::The>> t;
24}
This page took 0.581868 seconds and 5 git commands to generate.