https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115672
--- Comment #7 from Sean Murthy <s.murthy at outlook dot com> ---
I have three other observations I'm having a hard time grasping and worry that
I might be doing something wrong. I share them anyway in the hope they add
value. I will also attach repros for these.

The observations are made by including a new *independent* class template B
which is structurally same as class template A, except it does not have the
template template parameter. 

1. "Contamination" or "bleeding" [for lack of a better word]: Create B objects
after creating A objects B objects, though of an independent class, present the
exact same issues as A objects.

2. "Dependency" of some sort where the issues with B objects disappear if A
objects are not created (though template A still exists).

3. "Order dependency", where if B objects are created *before* creating A
objects, all issues described in this bug report disappear, **including the
issues with A objects**.

I find these specific issues rather perplexing, and I hope someone will help me
understand if I'm doing something wrong here or if the compiler is in the
wrong. If the latter, I'm eager to learn the cause (eventually whenever the
issue is addressed).

Reply via email to