15025 – [3.4/4.0 Regression] accepts redeclaration of template as non-template (original) (raw)
Description Drea Pinski 2004-04-20 12:02:44 UTC
I came up with this reducing PR 15024: template struct CartesianURM; template struct B { typedef CartesianURM F; }; template struct G : public B::F { }; struct CartesianURM {}; G f();
Comment 1 Wolfgang Bangerth 2004-04-20 12:54:41 UTC
Indeed, a regression on 3.4 and mainline w.r.t. 3.3 and previous versions. The code is definitely invalid. This is the shortest I can get:
template struct X; struct X {};
W.