Commit Graph

3 Commits

Author SHA1 Message Date
David Majnemer df8f73fd8a [Sema] Diagnose references to unbound arrays in function definitions
A [*] is only allowed in a declaration for a function, not in its
definition.  We didn't correctly recurse on reference types while
looking for it, causing us to crash in CodeGen instead of rejecting it.

llvm-svn: 234528
2015-04-09 19:53:25 +00:00
Richard Smith 04d6d2f2af PR18581: Attempt to complete the type in a VLA declaration before checking
whether it's POD.

llvm-svn: 201018
2014-02-08 02:30:49 +00:00
Richard Smith 84208dcf02 PR11925: A function can't have a variably-modified return type. Not even in C++.
llvm-svn: 152615
2012-03-13 05:56:40 +00:00