This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19047] [3.3/3.4 Regression] Template template argument matching can violate SFINAE
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Dec 2004 23:28:33 -0000
- Subject: [Bug c++/19047] [3.3/3.4 Regression] Template template argument matching can violate SFINAE
- References: <20041216225423.19047.benh@bwsint.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-16 23:28 -------
Reduced testcase:
template<class _CharT> struct char_traits {};
template<typename _CharT, typename _Traits = char_traits<_CharT> >
class basic_ostream {};
template<class _Traits>
basic_ostream<char, _Traits>&
operator<<(basic_ostream<char, _Traits>& __out, const char* __s);
extern basic_ostream<char> cout;
template<template<int> class CT, int TA>
void operator<<(CT<TA>, int);
int main()
{
cout << "Hello, world\n";
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-12-16 23:28:32
date| |
Summary|Template template argument |[3.3/3.4 Regression]
|matching can violate SFINAE |Template template argument
| |matching can violate SFINAE
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19047