[all-commits] [llvm/llvm-project] a0d05e: Handle interactions between reserved identifier an...
serge-sans-paille via All-commits
all-commits at lists.llvm.org
Wed Jun 23 06:39:01 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a0d05ed848990c06c6dcdfc2e37bc8f13f7fe470
https://github.com/llvm/llvm-project/commit/a0d05ed848990c06c6dcdfc2e37bc8f13f7fe470
Author: serge-sans-paille <sguelton at redhat.com>
Date: 2021-06-23 (Wed, 23 Jun 2021)
Changed paths:
M clang/include/clang/Sema/Sema.h
M clang/lib/AST/Decl.cpp
M clang/lib/Parse/ParseExprCXX.cpp
M clang/lib/Sema/SemaExprCXX.cpp
M clang/test/Sema/reserved-identifier.cpp
Log Message:
-----------
Handle interactions between reserved identifier and user-defined suffixes
According to https://eel.is/c++draft/over.literal
> double operator""_Bq(long double); // OK: does not use the reserved identifier _Bq ([lex.name])
> double operator"" _Bq(long double); // ill-formed, no diagnostic required: uses the reserved identifier _Bq ([lex.name])
Obey that rule by keeping track of the operator literal name status wrt. leading whitespace.
Fix: https://bugs.llvm.org/show_bug.cgi?id=50644
Differential Revision: https://reviews.llvm.org/D104299
More information about the All-commits
mailing list