Re: [PATCH] D23684: Resolve ambiguity in a declaration if global nested name specifier is used

2016-09-07 Thread Serge Pavlov via cfe-commits
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

Re: [PATCH] D23684: Resolve ambiguity in a declaration if global nested name specifier is used

2016-08-18 Thread Richard Smith via cfe-commits
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

[PATCH] D23684: Resolve ambiguity in a declaration if global nested name specifier is used

2016-08-18 Thread Serge Pavlov via cfe-commits
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