https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113629
Nathaniel Shead changed:
What|Removed |Added
Target Milestone|--- |14.0
Assignee|unassigned at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113629
--- Comment #3 from GCC Commits ---
The master branch has been updated by Nathaniel Shead :
https://gcc.gnu.org/g:49d83e963aa453600088380aebd507e172eb80ad
commit r14-9332-g49d83e963aa453600088380aebd507e172eb80ad
Author: Nathaniel Shead
Date:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113629
--- Comment #2 from 康桓瑋 ---
more reduced:
struct Base {
operator int(this auto&&) {
return 42;
}
};
int main() {
Base b;
// return static_cast(Base{}); // ok
return static_cast(b); // error
}
https://godbolt.org/z/qGrbf4rj7
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113629
--- Comment #1 from 康桓瑋 ---
test:
https://godbolt.org/z/jdz3ejohv