Re: [PATCH] D16965: Fix for Bug 14644 - clang confuses scope operator for global namespace giving extra qualification on member

2016-04-29 Thread Ryan Yee via cfe-commits
ryee88 updated this revision to Diff 55707. ryee88 added a comment. Removed unnecessary code changes. This patch contains a unit test to detect a regression of this global name specifier issue. http://reviews.llvm.org/D16965 Files: test/Parser/cxx-class.cpp Index: test/Parser/cxx-class.cpp

Re: [PATCH] D16965: Fix for Bug 14644 - clang confuses scope operator for global namespace giving extra qualification on member

2016-03-21 Thread Ryan Yee via cfe-commits
ryee88 added a comment. Yeah I don't think it's worth it to modify the general case wording to to explicitly call out the degenerate global nested-name-specifier. It'll cause more confusion for the general case. At this point, do we just close the bug and keep the new unit tests? http://revie

Re: [PATCH] D16965: Fix for Bug 14644 - clang confuses scope operator for global namespace giving extra qualification on member

2016-03-20 Thread Ryan Yee via cfe-commits
ryee88 added a comment. In http://reviews.llvm.org/D16965#377864, @dblaikie wrote: > Not sure I fully understand the issue with the existing diagnostic/change in > wording. > > '::' is a nested name specifier, even if it's a degenerate case, I think - so > the old wording doesn't seem wrong, as

Re: [PATCH] D16965: Fix for Bug 14644 - clang confuses scope operator for global namespace giving extra qualification on member

2016-03-19 Thread Ryan Yee via cfe-commits
ryee88 added inline comments. Comment at: lib/Sema/SemaDecl.cpp:3803 @@ +3802,3 @@ + +// Per C++ standard [n3485] 3.4.4 Elaborated type specifiers, section 3: +// "Cannot introduce an qualified". aaron.ballman wrote: > Can drop the N-paper reference, a

Re: [PATCH] D16965: Fix for Bug 14644 - clang confuses scope operator for global namespace giving extra qualification on member

2016-03-15 Thread Ryan Yee via cfe-commits
ryee88 added a comment. Anyone want to pick up this review? http://reviews.llvm.org/D16965 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16965: Fix for Bug 14644 - clang confuses scope operator for global namespace giving extra qualification on member

2016-03-04 Thread Ryan Yee via cfe-commits
ryee88 added a subscriber: dblaikie. ryee88 added a comment. Anyone care to take a look? http://reviews.llvm.org/D16965 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16965: Fix for Bug 14644 - clang confuses scope operator for global namespace giving extra qualification on member

2016-03-04 Thread Ryan Yee via cfe-commits
ryee88 updated this revision to Diff 49866. http://reviews.llvm.org/D16965 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDecl.cpp test/Parser/cxx-class.cpp Index: test/Parser/cxx-class.cpp === --- test/Parser/

Re: [PATCH] D16949: Fix for: Bug 5941 - improve diagnostic for * vs & confusion

2016-03-03 Thread Ryan Yee via cfe-commits
ryee88 added a comment. Thanks! I don’t have commit permissions; can you submit for me? http://reviews.llvm.org/D16949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16949: Fix for: Bug 5941 - improve diagnostic for * vs & confusion

2016-03-01 Thread Ryan Yee via cfe-commits
ryee88 updated this revision to Diff 49577. http://reviews.llvm.org/D16949 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaOverload.cpp test/SemaCXX/overload-call.cpp Index: test/SemaCXX/overload-call.cpp === --

Re: [PATCH] D16949: Fix for: Bug 5941 - improve diagnostic for * vs & confusion

2016-03-01 Thread Ryan Yee via cfe-commits
ryee88 added a comment. Yeah you’re right about this one being the original variant. I missed it when I was reading through the tests in this file. I’ve reworked it to reflect the new variants. http://reviews.llvm.org/D16949 ___ cfe-commits mailin

Re: [PATCH] D16949: Fix for: Bug 5941 - improve diagnostic for * vs & confusion

2016-02-26 Thread Ryan Yee via cfe-commits
ryee88 updated this revision to Diff 49280. ryee88 added a comment. Moved test to a file that checks for similar diagnostics. http://reviews.llvm.org/D16949 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaOverload.cpp test/SemaCXX/overload-call.cpp Index: test/SemaCXX/over

Re: [PATCH] D16949: Fix for: Bug 5941 - improve diagnostic for * vs & confusion

2016-02-25 Thread Ryan Yee via cfe-commits
ryee88 added a comment. any comments? http://reviews.llvm.org/D16949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16949: Fix for: Bug 5941 - improve diagnostic for * vs & confusion

2016-02-16 Thread Ryan Yee via cfe-commits
ryee88 updated this revision to Diff 48149. ryee88 added a comment. Keeping the number of test files to a minimum makes sense. Couldn't find an existing test for this diagnostic. I did find a cxx-reference.cpp that tests reference diagnostics so this seems like a reasonable location for this ne

Re: [PATCH] D16965: Fix for Bug 14644 - clang confuses scope operator for global namespace giving extra qualification on member

2016-02-13 Thread Ryan Yee via cfe-commits
ryee88 updated this revision to Diff 47926. ryee88 added a comment. Messed up the diff. Uploading it again. http://reviews.llvm.org/D16965 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDecl.cpp test/Parser/forward-declaration.cpp Index: test/Parser/forward-declaration.cp

Re: [PATCH] D16949: Fix for: Bug 5941 - improve diagnostic for * vs & confusion

2016-02-13 Thread Ryan Yee via cfe-commits
ryee88 updated this revision to Diff 47925. ryee88 added a comment. Sorry-- re-uploading the diff. Didn't notice I dropped the code changes. http://reviews.llvm.org/D16949 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaOverload.cpp test/Parser/overloaded-pointer-vs-referen

Re: [PATCH] D16949: Fix for: Bug 5941 - improve diagnostic for * vs & confusion

2016-02-13 Thread Ryan Yee via cfe-commits
ryee88 updated this revision to Diff 47924. ryee88 added a comment. Added unit test as per review comments. http://reviews.llvm.org/D16949 Files: test/Parser/overloaded-pointer-vs-reference-hint.cpp Index: test/Parser/overloaded-pointer-vs-reference-hint.cpp =

Re: [PATCH] D16965: Fix for Bug 14644 - clang confuses scope operator for global namespace giving extra qualification on member

2016-02-13 Thread Ryan Yee via cfe-commits
ryee88 updated this revision to Diff 47922. ryee88 added a comment. Added unit tests. http://reviews.llvm.org/D16965 Files: test/Parser/forward-declaration.cpp Index: test/Parser/forward-declaration.cpp === --- /dev/null +++ tes

Re: [PATCH] D16949: Fix for: Bug 5941 - improve diagnostic for * vs & confusion

2016-02-11 Thread Ryan Yee via cfe-commits
ryee88 added a comment. Ping-- can someone look at this review? http://reviews.llvm.org/D16949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16965: Fix for Bug 14644 - clang confuses scope operator for global namespace giving extra qualification on member

2016-02-11 Thread Ryan Yee via cfe-commits
ryee88 added a comment. Ping-- I think this review got missed. http://reviews.llvm.org/D16965 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D16965: Fix for Bug 14644 - clang confuses scope operator for global namespace giving extra qualification on member

2016-02-07 Thread Ryan Yee via cfe-commits
ryee88 created this revision. ryee88 added reviewers: doug.gregor, gribozavr, francisco.lopes. ryee88 added a subscriber: cfe-commits. Bug 14644 - clang confuses scope operator for global namespace giving extra qualification on member This is a fix for this bug: https://llvm.org/bugs/show_bug.cg

[PATCH] D16949: Fix for: Bug 5941 - improve diagnostic for * vs & confusion

2016-02-06 Thread Ryan Yee via cfe-commits
ryee88 created this revision. ryee88 added reviewers: doug.gregor, jyasskin, nicholas, rsmith. ryee88 added a subscriber: cfe-commits. This is bug 5941: https://llvm.org/bugs/show_bug.cgi?id=5941 I copied the extra suggestions from the complete type case to the incomplete type case. http://revi