llvm-project/clang/include
Reid Kleckner d61a311010 Diagnose function template definitions inside functions
The parser can only be tricked into parsing a function template
definition by inserting a typename keyword before the function template
declaration. This used to make us crash, and now it's fixed.

While here, remove an unneeded boolean parameter from ParseDeclGroup.
This boolean always corresponded to non-typedef declarators at file
scope. ParseDeclGroup already has precise diagnostics for the function
definition typedef case, so we can let that through.

Fixes PR21839.

llvm-svn: 224287
2014-12-15 23:16:32 +00:00
..
clang Diagnose function template definitions inside functions 2014-12-15 23:16:32 +00:00
clang-c Fix Typos in include/clang-c/Index.h 2014-12-05 15:50:44 +00:00
CMakeLists.txt
Makefile