We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
main
1 parent 4ee9469 commit 438d3ebCopy full SHA for 438d3eb
clang/test/CXX/drs/cwg2xx.cpp
@@ -138,7 +138,7 @@ Member_type get(Class &c) {
138
139
void call(int (*f)(Derived &)); // #cwg203-ex5-call
140
141
-int main() {
+int f() {
142
// ill-formed, contrary to Core issue filing:
143
// `&Derived::b` yields `int Derived::*`, which can't initialize NTTP of type `int Base::*`,
144
// because (implicit) pointer-to-member conversion doesn't upcast.
@@ -166,7 +166,7 @@ struct Derived : private Base { // #cwg203-ex6-Derived
166
using Base::a; // make `a` accessible
167
};
168
169
170
Derived d;
171
int b = d.a;
172
// FIXME: in the diagnostic below, Base is fully qualified, but Derived is not
0 commit comments