This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/7152: Compiler trap when comparing class instance to zero
- From: isambart at netcourrier dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 28 Jun 2002 09:39:50 -0000
- Subject: c++/7152: Compiler trap when comparing class instance to zero
- Reply-to: isambart at netcourrier dot com
>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: