[PATCH] D100667: [clang] Fix assert() crash when checking undeduced arg alignment
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 29 00:39:53 PDT 2021
hokein accepted this revision.
hokein added a comment.
still LG
================
Comment at: clang/test/SemaCXX/recovery-expr-type.cpp:29
// verify that "field has incomplete type" diagnostic is suppressed.
- typeof(foo(42)) var; // expected-error {{no matching function}}
+ typeof(foo(42)) var; // expected-error {{no matching function}} \
+ // expected-error {{use of undeclared identifier 'typeof'}} \
----------------
oh, `typeof` is a GNU extension, I think `-std=gnu++17` should suppress the new diagnostics.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100667/new/
https://reviews.llvm.org/D100667
More information about the cfe-commits
mailing list