This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18757] [3.4/4.0 Regression] ICE (on invalid) in get_innermost_template_args
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Dec 2004 16:24:12 -0000
- Subject: [Bug c++/18757] [3.4/4.0 Regression] ICE (on invalid) in get_innermost_template_args
- References: <20041201151637.18757.jakub@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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