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 preprocessor/58580] New: preprocessor goes OOM with warning for zero literals


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

            Bug ID: 58580
           Summary: preprocessor goes OOM with warning for zero literals
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org

Created attachment 30940
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30940&action=edit
testcase

> g++-4.8  -E test.cpp 
# 1 "test.cpp"
# 1 "<command-line>"
# 1 "test.cpp"
test.cpp:1:1: warning: null character(s) preserved in literal [enabled by
default]
 """""
 ^
test.cpp:2:1: warning: null character(s) preserved in literal [enabled by
default]
""
test.cpp:3:1: warning: null character(s) preserved in literal [enabled by
default]
""
test.cpp:4:1: warning: null character(s) preserved in literal [enabled by
default]
""

cc1plus: out of memory allocating 1677721600 bytes after a total of 405504
bytes

use a suitable ulimit -v to force the error.


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