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++/56895] [4.8/4.9 Regression] ICE: unexpected expression of kind arrow_expr


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-10 06:54:28 UTC ---
Author: jakub
Date: Wed Apr 10 06:33:26 2013
New Revision: 197660

URL: http://gcc.gnu.org/viewcvs?rev=197660&root=gcc&view=rev
Log:
    PR c++/56895
    * typeck.c (cp_build_binary_op): Call fold_non_dependent_expr_sfinae
    first before calling maybe_constant_value for warn_for_div_by_zero
    or invalid shift count warning purposes.

    * g++.dg/template/arrow3.C: New test.

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

Author: jakub
Date: Wed Apr 10 06:37:07 2013
New Revision: 197662

URL: http://gcc.gnu.org/viewcvs?rev=197662&root=gcc&view=rev
Log:
    PR c++/56895
    * typeck.c (cp_build_binary_op): Call fold_non_dependent_expr_sfinae
    first before calling maybe_constant_value for warn_for_div_by_zero
    or invalid shift count warning purposes.

    * g++.dg/template/arrow3.C: New test.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/g++.dg/template/arrow3.C
Modified:
    branches/gcc-4_8-branch/gcc/cp/ChangeLog
    branches/gcc-4_8-branch/gcc/cp/typeck.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog


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