[PATCH] Fix treatment of types defined in function prototype

Richard Smith richard at metafoo.co.uk
Tue Jun 24 09:24:49 PDT 2014


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






More information about the cfe-commits mailing list