https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83615
--- Comment #2 from Andrew Pinski ---
Even more reduced testcase:
typedef int t;
struct S {
explicit operator t() {
return 0;
}
};
int main() {
S val;
t & (val);
return 0;
}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83615
--- Comment #1 from Andrew Pinski ---
const has nothing to do with it:
typedef int **t;
class S {
public:
explicit operator t() {
return 0;
}
};
int main() {
S val;
t & (val);
return 0;
}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83615
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|