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]

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



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


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