1 2 3 4 5 6 7 8 9 10 11
// { dg-do assemble } template <int Dim, class T, class EngineTag> class Engine {}; struct Brick; template<int Dim, class T = double , class EngineTag = Brick > struct ConstArray { static const int dimensions = Engine<Dim, T, EngineTag>::dimensions; };