]> granicus.if.org Git - clang/commit
Reject template-ids containing literal-operator-ids that have a dependent
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 5 Dec 2013 00:58:33 +0000 (00:58 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 5 Dec 2013 00:58:33 +0000 (00:58 +0000)
commitcf1b10a63b988bdc4c2c58457b096599577537c2
tree1774c57408cd3cb1f8db6016f00cd74fe65e8716
parent11c616279561e7450cf7ea738dc0c64b33bdeba7
Reject template-ids containing literal-operator-ids that have a dependent
nested-name-specifier, rather than crashing. (In fact, reject all
literal-operator-ids that have a non-namespace nested-name-specifier). The
grammar doesn't allow these in some cases, and in other cases does allow them
but instantiation will always fail.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196443 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/Parse/ParseExprCXX.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaTemplate.cpp
test/SemaCXX/cxx11-user-defined-literals.cpp