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++/18512] [3.4/4.0 Regression] ICE on invalid usage of template base class


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-11-16 02:35 -------
More compact testcase:

==================================
template<int> struct A {};

struct B : A<0>
{
    void foo() { this->A<0>; }
};
==================================

This is really invalid code.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|ice-on-valid-code           |ice-on-invalid-code,
                   |                            |monitored
            Summary|[3.4/4.0 Regression] ICE on |[3.4/4.0 Regression] ICE on
                   |overriden template method   |invalid usage of template
                   |                            |base class


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


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