[Bug c++/109464] gcc does not instantiate constructor for explicitly instantiated template

2023-04-11 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109464 --- Comment #5 from LIU Hao --- Additional information: I tried splitting the two class templates into two separate .cpp files, so the explicit instantiation of `basic_shallow_string` should not be subject to the instantiation of

[Bug c++/109464] gcc does not instantiate constructor for explicitly instantiated template

2023-04-10 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109464 LIU Hao changed: What|Removed |Added Known to fail||10.4.0, 9.5.0 --- Comment #4 from LIU Hao

[Bug c++/109464] gcc does not instantiate constructor for explicitly instantiated template

2023-04-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109464 --- Comment #3 from Andrew Pinski --- (In reply to LIU Hao from comment #2) > shouldn't this be classified as wrong code? It is at least a link-failure. Wrong code might be a strech here.

[Bug c++/109464] gcc does not instantiate constructor for explicitly instantiated template

2023-04-10 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109464 --- Comment #2 from LIU Hao --- shouldn't this be classified as wrong code?

[Bug c++/109464] gcc does not instantiate constructor for explicitly instantiated template

2023-04-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109464 --- Comment #1 from Andrew Pinski --- Created attachment 54825 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54825=edit failed attempt at reducing This was my trial on reducing the testcase but it failed. In that the symbol is defined