File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -2383,13 +2383,8 @@ bool Compiler<Emitter>::VisitMemberExpr(const MemberExpr *E) {
2383
2383
return this ->visitDeclRef (Member, E);
2384
2384
}
2385
2385
2386
- if (Initializing) {
2387
- if (!this ->delegate (Base))
2388
- return false ;
2389
- } else {
2390
- if (!this ->visit (Base))
2391
- return false ;
2392
- }
2386
+ if (!this ->visit (Base))
2387
+ return false ;
2393
2388
2394
2389
// Base above gives us a pointer on the stack.
2395
2390
const auto *FD = cast<FieldDecl>(Member);
Original file line number Diff line number Diff line change @@ -40,3 +40,9 @@ struct B2 : B {
40
40
};
41
41
_Static_assert (&(B2().a) == &p, " " ); // both-error {{taking the address of a temporary object of type 'int'}} \
42
42
// both-error {{not an integral constant expression}}
43
+
44
+ typedef __attribute__ ((ext_vector_type(4 ))) int vi4b;
45
+ struct S {
46
+ vi4b w;
47
+ };
48
+ const int s = S().w[1 ];
You can’t perform that action at this time.
0 commit comments