diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/defarg9.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/defarg9.C | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/defarg9.C b/gcc/testsuite/g++.dg/template/defarg9.C new file mode 100644 index 000000000..de7528f61 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/defarg9.C @@ -0,0 +1,16 @@ +// PR c++/28048 + +template<typename T> struct Boom; + +template<typename T, bool D = Boom<T>::Internal::Value> // <--ICE + struct Foo + { + }; + +template<typename T> struct Boom +{ + struct Internal + { + static const bool Value = false; + }; +}; |