This is the mail archive of the gcc-prs@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]

c++/7019: erroneous failure to compile


>Number:         7019
>Category:       c++
>Synopsis:       erroneous failure to compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 13 08:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     david.abrahams@rcn.com
>Release:        gcc-3.1
>Organization:
>Environment:
Cygwin
>Description:
compile the code below
>How-To-Repeat:
template <class T, int (T::*)> struct foo;

template <class T>
int f(foo<T,&T::ob_type>*);

template <class T>
char* f(...);

struct X { int ob_type; };
struct Y { char* ob_type; };
  int x = f<X>(0);
char* y = f<Y>(0);
char* z = f<int>(0);

int main() { return 0; }
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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