This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/2638: GCC hangs when a "no matching function" error should be returned
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2638: GCC hangs when a "no matching function" error should be returned
- From: handrews at eecs dot tufts dot edu
- Date: 25 Apr 2001 16:17:42 -0000
- Cc: andand at juno dot com
- Reply-To: handrews at eecs dot tufts dot edu
>Number: 2638
>Category: c++
>Synopsis: GCC hangs when a "no matching function" error should be returned
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 25 09:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Harold G. Andrews II
>Release: GCC 2.95.3-3
>Organization:
>Environment:
cygwin
>Description:
GCC fails to return a "no matching function" error when a class declaration, A, has no method "set", <set> is included, and an attempt to access to A::set() is attempted. Instead, the compiler appears to hang.
>How-To-Repeat:
Compile the following code using:
g++ -Wall main.cc
main.cc:
#include <set>
class A {};
int main(void)
{
A a;
a.set();
return 0;
}
>Fix:
Be careful
>Release-Note:
>Audit-Trail:
>Unformatted: