This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/6918: Incorrect error report generated during overload resolution
- From: david dot abrahams at rcn dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 3 Jun 2002 12:36:56 -0000
- Subject: c++/6918: Incorrect error report generated during overload resolution
- Reply-to: david dot abrahams at rcn dot com
>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: