LGTM
================
Comment at: test/SemaCXX/type-definition-in-specifier.cpp:44
@@ +43,3 @@
+ void func4(struct t19018 {int qq;} x); // expected-error{{cannot be defined
in a parameter type}}
+ void func5(struct {int qq;} x); // expected-error{{cannot be defined in a
parameter type}}
+};
----------------
Does this still work if you put something more complex into the struct
definition? (For instance, if it tries to reference a member of the surrounding
struct, or if it has member functions, or similar.)
http://reviews.llvm.org/D4145
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits