c++/2638: GCC hangs when a "no matching function" error should be returned

handrews@eecs.tufts.edu handrews@eecs.tufts.edu
Wed Apr 25 09:26:00 GMT 2001


>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:



More information about the Gcc-bugs mailing list