This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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<S>::myS?:
> t.cc:32:   instantiated from ?static void Test<T>::out() [with T = S]?
> t.cc:40:   instantiated from here
> t.cc:49: error: cannot call member function ?S& S::instance()? without object
> 
> 
> This is fixed for 4.0.0.

Declare that method as static, the code become valid but the compiler 
still crash.


Regards
Gaetano Mendola

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|FIXED                       |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20980


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]