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++/18757] [3.4/4.0 Regression] ICE (on invalid) in get_innermost_template_args


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-12-01 16:24 -------
Here's a reduced example:

====================================================================
struct A
{
    template<typename>   void foo(int);
    template<typename T> void bar(T t) { this->foo<typename T>(t); }
};

void baz()
{
    A().bar(0);
}
====================================================================

If I remove "this->" the code compiles.
Hence, we have an accepts-invalid, too.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |accepts-invalid, monitored


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


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