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++/1511: Doesn't give "variable undeclared" error.



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

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