2004-12-23 Mark Mitchell <mark@codesourcery.com>
+ PR c++/17413
+ * pt.c (check_instantiated_args): Remove bogus SFINAE code.
+
* cvt.c (convert_to_void): Fix typo in comment.
2004-12-23 Alexandre Oliva <aoliva@redhat.com>
if (nt)
{
- if (!(complain & tf_error))
- /*OK*/;
- else if (TYPE_ANONYMOUS_P (nt))
+ if (TYPE_ANONYMOUS_P (nt))
error ("%qT uses anonymous type", t);
else
error ("%qT uses local type %qT", t, nt);
2004-12-23 Mark Mitchell <mark@codesourcery.com>
+ PR c++/17413
+ * g++.dg/template/local4.C: New test.
+ * g++.dg/template/crash19.C: Add dg-error marker.
+
* g++.dg/template/crash31.C: Correct embedded PR number.
2004-12-23 Mark Mitchell <mark@codesourcery.com>
struct X {
enum { SIXTY_FOUR=64 };
struct node {
- unsigned char *ptr[sizeof(T)*SIXTY_FOUR];
+ unsigned char *ptr[sizeof(T)*SIXTY_FOUR]; // { dg-error "" }
void d() {}
};
node *head;
--- /dev/null
+// PR c++/17413
+
+template <typename T> void foo() {}
+
+int main () {
+ struct S {};
+ // We do not simply use "local|match" on line 10 because we want to
+ // make sure that "local" appears.
+ // { dg-error "local" "" { target *-*-* } 10 }
+ foo<S> (); // { dg-error "match" }
+}