efriedma added a comment.
Also update the documentation? See
https://clang.llvm.org/docs/UsersManual.html#differences-between-various-standard-modes
.
================
Comment at: clang/lib/Sema/SemaDecl.cpp:5939
+ ElemTy = TryToFixInvalidVariablyModifiedType(ElemTy, Context,
+ SizeIsNegative, Oversized);
+ if (ElemTy.isNull())
----------------
It's a little surprising to me that you need new code here... was this case
getting picked up by the SemaType code?
================
Comment at: clang/lib/Sema/SemaType.cpp:2278
ArraySize, &SizeVal, Diagnoser,
- (S.LangOpts.GNUMode || S.LangOpts.OpenCL) ? Sema::AllowFold
- : Sema::NoFold);
+ S.LangOpts.OpenCL ? Sema::AllowFold : Sema::NoFold);
if (Diagnoser.IsVLA)
----------------
We probably want some note to explain why OpenCL is special here... if you
can't figure out easily, please leave a FIXME.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89523/new/
https://reviews.llvm.org/D89523
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits