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++/19047] New: Template template argument matching can violate SFINAE


The following program fails to compile:

#include <iostream>

template<template<int> class CT, int TA>
void operator<<(CT<TA>, int);

int main()
{
   std::cout << "Hello, world\n";
}

The error messages given are:
test.cpp: In function `int main()':
test.cpp:8: error: template argument 2 is invalid

-- 
           Summary: Template template argument matching can violate SFINAE
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: benh at bwsint dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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