https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90767
Bartosz Szreder <bartosz.szreder at huuugegames dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bartosz.szreder@huuugegames
| |.com
--- Comment #4 from Bartosz Szreder <bartosz.szreder at huuugegames dot com> ---
Another testcase, slightly different error message. Making A::f() a
non-template member function gives sensible results.
========================
struct A {
struct B
{
B(int) {}
};
template <typename T> void f()
{
int x = 0;
g(x);
}
void g(B& arg) {}
};
========================
$ g++ test.cpp
test.cpp: In member function ‘void A::f()’:
test.cpp:10:11: error: cannot convert ‘#‘view_convert_expr’ not supported by
dump_type#<type error>’ to ‘A::B&’
10 | g(x);
| ^
| |
| #‘view_convert_expr’ not supported by dump_type#<type error>
test.cpp:13:16: note: initializing argument 1 of ‘void A::g(A::B&)’
13 | void g( B& arg ) {}
|