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]

[Bug c++/37552] [4.4 regression] ICE with invalid array access



------- Comment #1 from jakub at gcc dot gnu dot org  2008-09-17 16:08 -------
Subject: Bug 37552

Author: jakub
Date: Wed Sep 17 16:07:08 2008
New Revision: 140422

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140422
Log:
        PR c++/37552
        * typeck.c (build_array_ref): Use protected_set_expr_location instead
        of SET_EXPR_LOCATION when ret might not be an expression.

        * g++.dg/parse/crash49.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/parse/crash49.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37552


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