c: fix ICE when forming composite type for two structures / unions [PR117548]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / nsdmi-template9.C
blob0cfbb9044247e2a61d592688da494f3c2fb0ad89
1 // PR c++/60999
2 // { dg-do compile { target c++11 } }
4 template <typename A>
5 struct foo
7 };
8   
9 template<>
10 struct foo<int>
12   static constexpr int code = 42;
13   unsigned int bar = static_cast<unsigned int>(code);
15   
16 foo<int> a;