14810 – [3.4/4.0 regression] tree check failures with invalid code involving templates (original) (raw)
Description Volker Reichelt 2004-04-01 14:08:03 UTC
Mark, your patches
http://gcc.gnu.org/ml/gcc-cvs/2004-03/msg01269.html (3.4 version) http://gcc.gnu.org/ml/gcc-cvs/2004-03/msg01270.html (mainline version)
cause several tree check failures with invalid code involving templates like
testsuite/g++.dg/parse/error1.C (PR 10432)
=================================================== struct INCOMPLETE; template struct X { static INCOMPLETE value; }; template <> INCOMPLETE X<1>::value = 0; // { dg-error "" }
testsuite/g++.dg/template/error1.C (PR 10219)
=================================================== template void make_pair(T x);
void foo(){ struct fps_chan_ID fps; // { dg-error "incomplete" "" } make_pair(fps); // { dg-error "no matching function" "" } }
Could you please have a look?
Comment 1 Drea Pinski 2004-04-01 15:50:16 UTC
Confirmed, Mark could you look into this?
Comment 4 Mark Mitchell 2004-04-01 20:05:59 UTC
Fixed in GCC 3.4 and GCC 3.5.