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



--- Comment #20 from emsr at gcc dot gnu.org 2012-11-29 02:30:48 UTC ---

Author: emsr

Date: Thu Nov 29 02:30:44 2012

New Revision: 193918



URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193918

Log:

gcc/c-family/



2012-11-29  Ed Smith-Rowland  <3dw...@verizon.net>



    PR c++/52654

    * c-common.h (overflow_type): New enum.

    (build_userdef_literal): Add overflow_type argument.

    (tree_userdef_literal): Add overflow_type.

    (USERDEF_LITERAL_OVERFLOW): New access macro.

    * c-common.c (build_userdef_literal): Add overflow_type

    argument.

    * c-lex.c (c_lex_with_flags): Add overflow_type to

    build_userdef_literal calls.

    (interpret_integer, interpret_float): Add overflow_type argument.





gcc/cp/



2012-11-29  Ed Smith-Rowland  <3dw...@verizon.net>



    PR c++/52654

    * parser.c (cp_parser_string_literal): Add overflow_type arg.

    (cp_parser_userdef_numeric_literal): Warn on numeric overflow.





gcc/testsuite/



2012-11-29  Ed Smith-Rowland  <3dw...@verizon.net>



    PR c++/52654

    * g++.dg/cpp0x/udlit-overflow.C: New.

    * g++.dg/cpp0x/udlit-overflow-neg.C: New.





Added:

    trunk/gcc/testsuite/g++.dg/cpp0x/udlit-overflow-neg.C

    trunk/gcc/testsuite/g++.dg/cpp0x/udlit-overflow.C

Modified:

    trunk/gcc/c-family/ChangeLog

    trunk/gcc/c-family/c-common.c

    trunk/gcc/c-family/c-common.h

    trunk/gcc/c-family/c-lex.c

    trunk/gcc/cp/ChangeLog

    trunk/gcc/cp/parser.c

    trunk/gcc/testsuite/ChangeLog

Reply via email to