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++/48450] [C++0x][SFINAE] Hard errors with static_cast expressions


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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-07 21:47:41 UTC ---
Author: jason
Date: Thu Apr  7 21:47:38 2011
New Revision: 172145

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172145
Log:
    PR c++/48450
    * typeck.c (check_for_casting_away_constness): Take complain.
    (build_static_cast_1, build_reinterpret_cast_1): Pass it.
    (build_const_cast_1): Pass it.  Take full complain parm.
    (build_const_cast, cp_build_c_cast): Adjust.

Added:
    trunk/gcc/testsuite/c-c++-common/Wcast-qual-1.c
      - copied, changed from r172144, trunk/gcc/testsuite/gcc.dg/cast-qual-3.c
Removed:
    trunk/gcc/testsuite/g++.dg/warn/Wcast-qual2.C
    trunk/gcc/testsuite/gcc.dg/cast-qual-3.c
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


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