gcc/c-family/
commit324ca37733c5bb9e18452a5e81a12f6f42fd1e4d
authoremsr <emsr@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Nov 2012 02:30:44 +0000 (29 02:30 +0000)
committeremsr <emsr@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Nov 2012 02:30:44 +0000 (29 02:30 +0000)
tree82d134dee495ddba8519c473b5cbfa7009581d18
parent6c03ca245ee71ec1bd6b4fc3a205ab86a1bb969a
gcc/c-family/

2012-11-29  Ed Smith-Rowland  <3dw4rd@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  <3dw4rd@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  <3dw4rd@verizon.net>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193918 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/c-family/c-lex.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/udlit-overflow-neg.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/udlit-overflow.C [new file with mode: 0644]