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]

c++/6918: Incorrect error report generated during overload resolution


>Number:         6918
>Category:       c++
>Synopsis:       Incorrect error report generated during overload resolution
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 03 05:46:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     david.abrahams@rcn.com
>Release:        unknown-1.0
>Organization:
>Environment:
Linux/Cygwin
>Description:
foo.cpp: In function `int f()':
foo.cpp:13: template-argument `f()::<anonymous enum>' uses anonymous type
>How-To-Repeat:
template <class T> struct x
{
    operator int() const;
};

class C;
template <class L>
x<L> operator+(L const&, C const&);

int f()
{
    enum { n = 42 };
    return n + 1;
}
>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]