File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -392,7 +392,8 @@ namespace GH150015 {
392392 struct X {};
393393 struct Y {};
394394 struct Z : X, Y {};
395- extern Z z;
396- constexpr int bases = (void *)(X*)&z <= (Y*)&z; // nointerpreter-error {{constexpr variable 'bases' must be initialized by a constant expression}} \
397- // nointerpreter-note {{comparison of addresses of subobjects of different base classes has unspecified value}}
395+ extern Z &z; // interpreter-note{{declared here}}
396+ constexpr int bases = (void *)(X*)&z <= (Y*)&z; // expected-error {{constexpr variable 'bases' must be initialized by a constant expression}} \
397+ // nointerpreter-note {{comparison of addresses of subobjects of different base classes has unspecified value}} \
398+ // interpreter-note {{initializer of 'z' is unknown}}
398399}
You can’t perform that action at this time.
0 commit comments