https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63831

            Bug ID: 63831
           Summary: [5 Regression] r217292 causes segfauls with -MM
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org

Starting with r217292 I get:

trippels@gcc1-power7 test % cat test.cpp
#include <1.h>

trippels@gcc1-power7 test % cat 1.h
#ifndef __has_attribute
#    define __has_attribute(x) 0
#endif

#if  __has_attribute(alloc_size)
#   define U_ALLOC_SIZE_ATTR(X) __attribute__ ((alloc_size(X)))
#endif

trippels@gcc1-power7 test % g++ -I ./ -MM test.cpp
<built-in>: internal compiler error: Segmentation fault
0x109b658b crash_signal
        ../../gcc/gcc/toplev.c:358
0x110b3a90 parse_has_attribute
        ../../gcc/libcpp/expr.c:2165
0x110b3a90 eval_token
        ../../gcc/libcpp/expr.c:1059
0x110b3a90 _cpp_parse_expr
        ../../gcc/libcpp/expr.c:1227
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Reply via email to