sepavloff updated this revision to Diff 70503.
sepavloff added a comment.
Reworked patch
https://reviews.llvm.org/D23684
Files:
include/clang/Basic/DiagnosticParseKinds.td
include/clang/Parse/Parser.h
include/clang/Sema/Sema.h
lib/Parse/ParseDecl.cpp
lib/Parse/ParseExprCXX.cpp
PR28422 is invalid. Giving better diagnostics in this case seems
reasonable, but we should not accept the ill-formed code.
On 18 Aug 2016 11:41 a.m., "Serge Pavlov" wrote:
> sepavloff created this revision.
> sepavloff added reviewers: rsmith, doug.gregor.
> sepavloff added
sepavloff created this revision.
sepavloff added reviewers: rsmith, doug.gregor.
sepavloff added a subscriber: cfe-commits.
If a declaration references a function from global namespace by its
qualified name and if that function return type is a class or enum, there
is possible ambiguity. The