summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-10-13 23:27:22 +0000
committerDouglas Gregor <dgregor@apple.com>2009-10-13 23:27:22 +0000
commit15e5602e599856f80a3b77b7c05715971ec339b8 (patch)
tree31ccce478610aeeaff7ca3af816bdbcf39defb3e /clang/lib/CodeGen/CodeGenModule.cpp
parentf258caa7182e0714e5c097ebbf3375ac7d4611bd (diff)
downloadbcm5719-llvm-15e5602e599856f80a3b77b7c05715971ec339b8.tar.gz
bcm5719-llvm-15e5602e599856f80a3b77b7c05715971ec339b8.zip
Improve diagnostics when the parser encounters a declarator with an
unknown type name, e.g., foo::bar x; when "bar" does not refer to a type in "foo". With this change, the parser now calls into the action to perform diagnostics and can try to recover by substituting in an appropriate type. For example, this allows us to easily diagnose some missing "typename" specifiers, which we now do: test/SemaCXX/unknown-type-name.cpp:29:1: error: missing 'typename' prior to dependent type name 'A<T>::type' A<T>::type A<T>::f() { return type(); } ^~~~~~~~~~ typename Fixes PR3990. llvm-svn: 84053
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud