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++/7152: Compiler trap when comparing class instance to zero


>Number:         7152
>Category:       c++
>Synopsis:       Compiler trap when comparing class instance to zero
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 28 02:46:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Vincent Isambart
>Release:        3.1
>Organization:
>Environment:
linux 2.4.19-pre10-ac2
Athlon 900 MHz
>Description:
When compiling code with a comparison between an instance of a class and 0, the C++ compiler exits signaling a compiler trap. It does so with no option.
It should just report a normal error.
>How-To-Repeat:
Here is an example of code:

class a {}
void test(a myA) { myA != 0 }
>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]