This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24050] [3.4 Regression] Fails a template instantiation.
- 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: 24 Nov 2005 16:58:44 -0000
- Subject: [Bug c++/24050] [3.4 Regression] Fails a template instantiation.
- References: <bug-24050-11414@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from reichelt at gcc dot gnu dot org 2005-11-24 16:58 -------
Testcase with fewer nesting levels of templates:
========================================
template<int> struct A
{
static void foo() {}
};
void bar(void (*)()) {}
template<int> struct B
{
B() { bar(A<0>::foo); }
};
B<0> b;
int main()
{
return 0;
}
========================================
Compiles with optimization turned on.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords| |monitored
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24050