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

--- Comment #5 from rguenther at suse dot de <rguenther at suse dot de> ---
On Fri, 4 Feb 2022, redi at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104379
> 
> --- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
> So you can imagine what happens if you combine constructor clones with
> templates! :-D
> 
> template<typename T>
> struct S
> {
>   int i;
>   S(int i) { (void) i; }
> };
> 
> S<int> i(1);
> S<long> j(1);
> 
> wheeeeeeeee!

It's just really insisting on you to fix it! ;)  Somehow it feels
the shadow stuff runs at the wrong place - it should run at _parsing_,
not at instantiation [of ctor/dtor clones].

Reply via email to