diff options
author | Richard Trieu <rtrieu@google.com> | 2011-09-19 19:01:00 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2011-09-19 19:01:00 +0000 |
commit | 01fc00106225e5d5e8a50637bcf8edbfa20a431d (patch) | |
tree | dcebed84a90f81be7733ef59fc1ea2ab935364dc /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 5a54065c4f1220ef6b1128c6fe59f9c962b32b21 (diff) | |
download | bcm5719-llvm-01fc00106225e5d5e8a50637bcf8edbfa20a431d.tar.gz bcm5719-llvm-01fc00106225e5d5e8a50637bcf8edbfa20a431d.zip |
Changes to the name lookup have caused a regression in the digraph fix-it hint.
For instance:
template <class T> void E() {};
class F {};
void test() {
::E<::F>();
E<::F>();
}
Gives the following error messages:
error: found '<::' after a template name which forms the
digraph '<:' (aka '[') and a ':', did you mean '< ::'?
::E<::F>();
^~~
< ::
error: expected expression
E<::F>();
^
error: expected ']'
note: to match this '['
E<::F>();
This patch adds the digraph fix-it check right before the name lookup,
moves the shared checking code to a new function, and adds new
tests to catch future regressions.
llvm-svn: 140039
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions