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++/70869] New: internal compiler error: Segmentation fault on array of pointer to function members


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

            Bug ID: 70869
           Summary: internal compiler error: Segmentation fault on array
                    of pointer to function members
           Product: gcc
           Version: 6.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: thomas.helfer at cea dot fr
  Target Milestone: ---

Created attachment 38373
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38373&action=edit
test file reproducing the bug

Hi,

The bug seems new in gcc 6.1. It happens when parsing expression such as:

for(const auto& m: {&A::f,&A::f2}){

See the test in attachment which works with previous versions (4.7, 4.9, 5.1,
5.2).

This is the output of gcc on my Linux (Debian jessie) box:

g++ -v -save-temps test.cxx -o test
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/media/th202608/0ed06489-8de7-451c-9cf5-7c6d11bec927/codes/gcc/6.1.0/install/libexec/gcc/x86_64-pc-linux-gnu/6.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-6.1.0/configure
--prefix=/media/th202608/0ed06489-8de7-451c-9cf5-7c6d11bec927/codes/gcc/6.1.0/install
Thread model: posix
gcc version 6.1.0 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-o' 'test' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'

/media/th202608/0ed06489-8de7-451c-9cf5-7c6d11bec927/codes/gcc/6.1.0/install/libexec/gcc/x86_64-pc-linux-gnu/6.1.0/cc1plus
-E -quiet -v -imultiarch x86_64-linux-gnu -D_GNU_SOURCE test.cxx -mtune=generic
-march=x86-64 -fpch-preprocess -o test.ii
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory
"/media/th202608/0ed06489-8de7-451c-9cf5-7c6d11bec927/codes/gcc/6.1.0/install/lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../x86_64-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:

/media/th202608/0ed06489-8de7-451c-9cf5-7c6d11bec927/codes/gcc/6.1.0/install/lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../include/c++/6.1.0

/media/th202608/0ed06489-8de7-451c-9cf5-7c6d11bec927/codes/gcc/6.1.0/install/lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../include/c++/6.1.0/x86_64-pc-linux-gnu

/media/th202608/0ed06489-8de7-451c-9cf5-7c6d11bec927/codes/gcc/6.1.0/install/lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../include/c++/6.1.0/backward

/media/th202608/0ed06489-8de7-451c-9cf5-7c6d11bec927/codes/gcc/6.1.0/install/lib/gcc/x86_64-pc-linux-gnu/6.1.0/include
 /usr/local/include

/media/th202608/0ed06489-8de7-451c-9cf5-7c6d11bec927/codes/gcc/6.1.0/install/include

/media/th202608/0ed06489-8de7-451c-9cf5-7c6d11bec927/codes/gcc/6.1.0/install/lib/gcc/x86_64-pc-linux-gnu/6.1.0/include-fixed
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-o' 'test' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'

/media/th202608/0ed06489-8de7-451c-9cf5-7c6d11bec927/codes/gcc/6.1.0/install/libexec/gcc/x86_64-pc-linux-gnu/6.1.0/cc1plus
-fpreprocessed test.ii -quiet -dumpbase test.cxx -mtune=generic -march=x86-64
-auxbase test -version -o test.s
GNU C++14 (GCC) version 6.1.0 (x86_64-pc-linux-gnu)
        compiled by GNU C version 6.1.0, GMP version 6.1.0, MPFR version 3.1.4,
MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++14 (GCC) version 6.1.0 (x86_64-pc-linux-gnu)
        compiled by GNU C version 6.1.0, GMP version 6.1.0, MPFR version 3.1.4,
MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 33ec74a6d567f8d1443e643e24e39f72
g++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

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