[Bug c++/122958] [13/14/15/16 Regression] internal compiler error: tree check: accessed elt 3 of 'tree_vec' with 2 elts in tsubst, at cp/pt.cc:16806

egas.g.ribeiro at tecnico dot ulisboa.pt gcc-bugzilla@gcc.gnu.org
Sat Dec 20 14:44:43 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122958

--- Comment #8 from Egas  Ribeiro <egas.g.ribeiro at tecnico dot ulisboa.pt> ---
(In reply to Egas  Ribeiro from comment #6)
> i get the same exact backtrace as the test case if i use:
> ```
> template <class T>
> class Vec;  
> 
> template <class T>
> class Vec<T*>; 
> 
> template <class T>
> class Vec<T*> { };
```
nevermind! ignore this backtrace.
i had a bad build for this backtrace (was testing some changes) and forgot to
rebuild, there isn't any segfault on this testcase (only the original code).
oops.


More information about the Gcc-bugs mailing list