PR c++/38357
* g++.dg/template/crash87.C: New test.
From-SVN: r143403
+2008-01-15 Steve Ellcey <sje@cup.hp.com>
+
+ PR c++/38357
+ * g++.dg/template/crash87.C: New test.
+
2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/37843
--- /dev/null
+// Origin: PR c++/38357
+// { dg-do compile }
+
+class BUG
+{
+public:
+ bool name() { return true; }
+};
+
+template <bool T>
+struct BUG1_5
+{
+
+};
+
+template <bool name>
+class BUG2 : BUG
+{
+public:
+ typedef BUG1_5<name> ptr; // { dg-error "could not convert template argument" }
+};
+
+int main()
+{
+ BUG2<false> b;
+ return 0;
+}