[Bug c++/20980] internal compiler error on static member assignment

2005-04-13 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-13 09:39 --- But the code is still invalid and is really a dup of bug 20133. You most want: template int Test::myInt; template S& Test::myS = S::instance(); Not what you gave. The orginal ICE is fixed so still closin

[Bug c++/20980] internal compiler error on static member assignment

2005-04-12 Thread mendola at bigfoot dot com
--- Additional Comments From mendola at bigfoot dot com 2005-04-13 06:07 --- (In reply to comment #2) > (In reply to comment #1) > > The code is invalid: > > t.cc: In instantiation of ‘S& Test::myS’: > > t.cc:32: instantiated from ‘static void Test::out() [with T = S]’ > > t.cc:40: i

[Bug c++/20980] internal compiler error on static member assignment

2005-04-12 Thread mendola at bigfoot dot com
--- Additional Comments From mendola at bigfoot dot com 2005-04-13 05:26 --- (In reply to comment #1) > The code is invalid: > t.cc: In instantiation of ‘S& Test::myS’: > t.cc:32: instantiated from ‘static void Test::out() [with T = S]’ > t.cc:40: instantiated from here > t.cc:49: er

[Bug c++/20980] internal compiler error on static member assignment

2005-04-12 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-12 23:06 --- The code is invalid: t.cc: In instantiation of ‘S& Test::myS’: t.cc:32: instantiated from ‘static void Test::out() [with T = S]’ t.cc:40: instantiated from here t.cc:49: error: cannot call member functio