This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/1511: Doesn't give "variable undeclared" error.
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/1511: Doesn't give "variable undeclared" error.
- From: vikram at dsl dot serc dot iisc dot ernet dot in
- Date: 26 Dec 2000 05:37:50 -0000
- Reply-To: vikram at dsl dot serc dot iisc dot ernet dot in
>Number: 1511
>Category: c++
>Synopsis: Doesn't give "variable undeclared" error.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Mon Dec 25 21:46:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: vikram@dsl.serc.iisc.ernet.in
>Release: unknown-1.0
>Organization:
>Environment:
tried on many environments with
gcc version 2.95.2 19991024 (release)
>Description:
There is a "count" algorithm in algo.h.
I wasn't aware of this and did "cin >> count;"
and forgot to declare "int count;".
Instead of giving a compile time error of "count undeclared",
it gives: Internal compiler error 390 in "int main()".
>How-To-Repeat:
Just try to compile the file: g++ t.C
>Fix:
Don't know if any fix is possible. May be fix C++ itself!
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="t.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="t.C"
I2luY2x1ZGUgPGlvc3RyZWFtLmg+CiNpbmNsdWRlIDxhbGdvLmg+CgppbnQgbWFpbigpCnsKICAg
IGNpbiA+PiBjb3VudDsKfQo=