public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
@ 2015-01-22 10:10 dominiq at lps dot ens.fr
  2015-01-22 10:15 ` [Bug c++/64727] " jakub at gcc dot gnu.org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-01-22 10:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64727
           Summary: [5 Regression]
                    g++.dg/torture/darwin-cfstring-3.C:11:80: internal
                    compiler error: Segmentation fault: 11
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominiq at lps dot ens.fr
                CC: fxcoudert at gcc dot gnu.org, howarth at bromo dot med.uc.edu,
                    iains at gcc dot gnu.org, jakub at gcc dot gnu.org,
                    jason at gcc dot gnu.org
              Host: x86_64-apple-darwin14
            Target: x86_64-apple-darwin14
             Build: x86_64-apple-darwin14

Compiling g++.dg/torture/darwin-cfstring-3.C on x86_64-apple-darwin14 with
r219982 (see https://gcc.gnu.org/ml/gcc-testresults/2015-01/msg02466.html)
gives the following ICE

/opt/gcc/work/gcc/testsuite/g++.dg/torture/darwin-cfstring-3.C:11:80: internal
compiler error: Segmentation fault: 11
 #define CFSTR(STR)  ((CFStringRef) __builtin___CFStringMakeConstantString
(STR))
                                                                               
^
/opt/gcc/work/gcc/testsuite/g++.dg/torture/darwin-cfstring-3.C:19:18: note: in
expansion of macro 'CFSTR'
 CFStringRef s0 = CFSTR("Hello" "there");
                  ^

/opt/gcc/work/gcc/testsuite/g++.dg/torture/darwin-cfstring-3.C:11:80: internal
compiler error: Abort trap: 6
 #define CFSTR(STR)  ((CFStringRef) __builtin___CFStringMakeConstantString
(STR))
                                                                               
^
/opt/gcc/work/gcc/testsuite/g++.dg/torture/darwin-cfstring-3.C:19:18: note: in
expansion of macro 'CFSTR'
 CFStringRef s0 = CFSTR("Hello" "there");
                  ^
g++5: internal compiler error: Abort trap: 6 (program cc1plus)
Abort

Revision r219969 is OK.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
  2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
@ 2015-01-22 10:15 ` jakub at gcc dot gnu.org
  2015-01-22 10:40 ` dominiq at lps dot ens.fr
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-22 10:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Can you reproduce it with stage1 cc1plus?  As in, is it miscompiled compiler or
just some problem on the testcase?  If the former, can you bisect exactly to
the version and bisect which *.o file it is?


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
  2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
  2015-01-22 10:15 ` [Bug c++/64727] " jakub at gcc dot gnu.org
@ 2015-01-22 10:40 ` dominiq at lps dot ens.fr
  2015-01-22 10:46 ` jakub at gcc dot gnu.org
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-01-22 10:40 UTC (permalink / raw)
  To: gcc-bugs

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-01-22
     Ever confirmed|0                           |1

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Can you reproduce it with stage1 cc1plus?  

Yes:

[Book15] f90/bug% /opt/gcc/build_w/stage1-gcc/cc1plus
/opt/gcc/work/gcc/testsuite/g++.dg/torture/darwin-cfstring-3.C
/opt/gcc/work/gcc/testsuite/g++.dg/torture/darwin-cfstring-3.C:11:80: internal
compiler error: Segmentation fault: 11
 #define CFSTR(STR)  ((CFStringRef) __builtin___CFStringMakeConstantString
(STR))
...

> As in, is it miscompiled compiler or just some problem on the testcase?

The test has not changed since Oct 23  2010.

>  If the former, can you bisect exactly to the version and bisect which
> *.o file it is?

I can do the bisection, but I don't understand what you mean by "*.o file it
is".


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
  2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
  2015-01-22 10:15 ` [Bug c++/64727] " jakub at gcc dot gnu.org
  2015-01-22 10:40 ` dominiq at lps dot ens.fr
@ 2015-01-22 10:46 ` jakub at gcc dot gnu.org
  2015-01-22 10:54 ` dominiq at lps dot ens.fr
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-22 10:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
If stage1 fails, then it is not miscompilation of the compiler itself (or it
would be miscompilation by your system compiler instead).
So no *.o bisection is needed.  That said, I don't see what commit in that
range might be related.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
  2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
                   ` (2 preceding siblings ...)
  2015-01-22 10:46 ` jakub at gcc dot gnu.org
@ 2015-01-22 10:54 ` dominiq at lps dot ens.fr
  2015-01-22 10:58 ` jakub at gcc dot gnu.org
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-01-22 10:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> If stage1 fails, then it is not miscompilation of the compiler itself
> (or it would be miscompilation by your system compiler instead).

My bootstrap compiler is

gcc version 5.0.0 20150107 (experimental) [trunk revision 219318] (GCC)

I don't know which compiler FX is using (I guess Clang).

> So no *.o bisection is needed.  That said, I don't see what commit in that
> range might be related.

Candidates are 219970, 219973, 219974, and 219981.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
  2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
                   ` (3 preceding siblings ...)
  2015-01-22 10:54 ` dominiq at lps dot ens.fr
@ 2015-01-22 10:58 ` jakub at gcc dot gnu.org
  2015-01-22 15:33 ` dominiq at lps dot ens.fr
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-22 10:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The only FE change among those is r219973.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
  2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
                   ` (4 preceding siblings ...)
  2015-01-22 10:58 ` jakub at gcc dot gnu.org
@ 2015-01-22 15:33 ` dominiq at lps dot ens.fr
  2015-01-22 17:13 ` howarth at bromo dot med.uc.edu
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-01-22 15:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> The only FE change among those is r219973.

And indeed if I revert it, the ICE disappears.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
  2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
                   ` (5 preceding siblings ...)
  2015-01-22 15:33 ` dominiq at lps dot ens.fr
@ 2015-01-22 17:13 ` howarth at bromo dot med.uc.edu
  2015-01-22 17:23 ` dominiq at lps dot ens.fr
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: howarth at bromo dot med.uc.edu @ 2015-01-22 17:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from howarth at bromo dot med.uc.edu ---
(In reply to Dominique d'Humieres from comment #6)
> > The only FE change among those is r219973.
> 
> And indeed if I revert it, the ICE disappears.

Do you see the regression, with r219973 in place, if you bootstrap with gcc
4.9.2 rather than gcc 5.0svn? It also seems odd, if r219973 triggers this bug,
that you see it when bootstrapping with a gcc 5.0svn compiler built prior to
r219973.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
  2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
                   ` (6 preceding siblings ...)
  2015-01-22 17:13 ` howarth at bromo dot med.uc.edu
@ 2015-01-22 17:23 ` dominiq at lps dot ens.fr
  2015-01-22 17:27 ` howarth at bromo dot med.uc.edu
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-01-22 17:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Do you see the regression, with r219973 in place, if you bootstrap with gcc
> 4.9.2 rather than gcc 5.0svn? It also seems odd, if r219973 triggers this bug,
> that you see it when bootstrapping with a gcc 5.0svn compiler built prior to
> r219973.

??? 
Sorry,I don't understand what you are asking for: the ICE seems independent of
the bootstrap compiler (assuming FX is using clang).


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
  2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
                   ` (7 preceding siblings ...)
  2015-01-22 17:23 ` dominiq at lps dot ens.fr
@ 2015-01-22 17:27 ` howarth at bromo dot med.uc.edu
  2015-01-22 18:43 ` howarth at bromo dot med.uc.edu
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: howarth at bromo dot med.uc.edu @ 2015-01-22 17:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from howarth at bromo dot med.uc.edu ---
My mistake, I thought FX wasn't showing the errors.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
  2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
                   ` (8 preceding siblings ...)
  2015-01-22 17:27 ` howarth at bromo dot med.uc.edu
@ 2015-01-22 18:43 ` howarth at bromo dot med.uc.edu
  2015-01-22 22:00 ` jason at gcc dot gnu.org
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: howarth at bromo dot med.uc.edu @ 2015-01-22 18:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from howarth at bromo dot med.uc.edu ---
This ICE for "FAIL: g++.dg/torture/darwin-cfstring-3.C   -O0" backtraces as...

% lldb
/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/g++/../../cc1plus
(lldb) target create
"/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/g++/../../cc1plus"
Current executable set to
'/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/g++/../../cc1plus'
(x86_64).
(lldb) r -quiet -nostdinc++ -v -I
/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.1.0/libstdc++-v3/include/x86_64-apple-darwin14.1.0
-I
/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.1.0/libstdc++-v3/include
-I /sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-20150121/libstdc++-v3/libsupc++ -I
/sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-20150121/libstdc++-v3/include/backward
-I
/sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-20150121/libstdc++-v3/testsuite/util
-iprefix
/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/../lib/gcc/x86_64-apple-darwin14.1.0/5.0.0/
-isystem
/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/g++/../../include
-isystem
/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/g++/../../include-fixed
-D__DYNAMIC__
/sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-20150121/gcc/testsuite/g++.dg/torture/darwin-cfstring-3.C
-fPIC -quiet -dumpbase darwin-cfstring-3.C -mmacosx-version-min=10.10.1
-mconstant-cfstrings -m64 -mtune=core2 -auxbase-strip darwin-cfstring-3.s -O0
-version -fno-diagnostics-show-caret -fdiagnostics-color=never
-fmessage-length=0 -o darwin-cfstring-3.s
Process 97821 launched:
'/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/g++/../../cc1plus'
(x86_64)
GNU C++ (GCC) version 5.0.0 20150122 (experimental) (x86_64-apple-darwin14.1.0)
    compiled by GNU C version 5.0.0 20150122 (experimental), GMP version 6.0.0,
MPFR version 3.1.2, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory
"/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/../lib/gcc/x86_64-apple-darwin14.1.0/5.0.0/include"
ignoring nonexistent directory
"/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/../lib/gcc/x86_64-apple-darwin14.1.0/5.0.0/include-fixed"
ignoring nonexistent directory
"/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/../lib/gcc/x86_64-apple-darwin14.1.0/5.0.0/../../../../x86_64-apple-darwin14.1.0/include"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/sw/lib/gcc5.0/lib/gcc/x86_64-apple-darwin14.1.0/5.0.0/../../../../x86_64-apple-darwin14.1.0/include"
#include "..." search starts here:
#include <...> search starts here:

/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.1.0/libstdc++-v3/include/x86_64-apple-darwin14.1.0

/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.1.0/libstdc++-v3/include
 /sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-20150121/libstdc++-v3/libsupc++

/sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-20150121/libstdc++-v3/include/backward
 /sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-20150121/libstdc++-v3/testsuite/util

/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/g++/../../include

/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/g++/../../include-fixed
 /sw/lib/gcc5.0/lib/gcc/x86_64-apple-darwin14.1.0/5.0.0/include
 /sw/lib/gcc5.0/include
 /sw/lib/gcc5.0/lib/gcc/x86_64-apple-darwin14.1.0/5.0.0/include-fixed
 /usr/include
 /System/Library/Frameworks
 /Library/Frameworks
End of search list.
GNU C++ (GCC) version 5.0.0 20150122 (experimental) (x86_64-apple-darwin14.1.0)
    compiled by GNU C version 5.0.0 20150122 (experimental), GMP version 6.0.0,
MPFR version 3.1.2, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 73eb99ceace32769122060efa78397a6
Process 97821 stopped
* thread #1: tid = 0x1b316f, 0x0000000100805551
cc1plus`used_types_insert(t=0x0000000000000000) + 17 at function.c:6372, queue
= 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x0000000100805551
cc1plus`used_types_insert(t=0x0000000000000000) + 17 at function.c:6372
   6369    void
   6370    used_types_insert (tree t)
   6371    {
-> 6372      while (POINTER_TYPE_P (t) || TREE_CODE (t) == ARRAY_TYPE)
   6373        if (TYPE_NAME (t))
   6374          break;
   6375        else
(lldb) bt
* thread #1: tid = 0x1b316f, 0x0000000100805551
cc1plus`used_types_insert(t=0x0000000000000000) + 17 at function.c:6372, queue
= 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x0000000100805551
cc1plus`used_types_insert(t=0x0000000000000000) + 17 at function.c:6372
    frame #1: 0x0000000100101e4d cc1plus`mark_used(decl=0x000000014261e1c0,
complain=3) + 429 at decl2.c:4938
    frame #2: 0x000000010018d595
cc1plus`constant_value_1(decl=0x000000014261e1c0, strict_p=false,
return_aggregate_cst_ok_p=true) + 101 at init.c:2035
    frame #3: 0x00000001002414fd
cc1plus`cxx_eval_constant_expression(ctx=0x00007fff5fbfeaa0,
t=0x000000014261e1c0, lval=<unavailable>, non_constant_p=0x00007fff5fbfea9e,
overflow_p=0x00007fff5fbfea9f, jump_target=0x0000000000000000) + 6861 at
constexpr.c:2965
    frame #4: 0x0000000100240380
cc1plus`cxx_eval_constant_expression(ctx=0x00007fff5fbfeaa0,
t=0x00000001427812e0, lval=<unavailable>, non_constant_p=0x00007fff5fbfea9e,
overflow_p=0x00007fff5fbfea9f, jump_target=<unavailable>) + 2384 at
constexpr.c:3153
    frame #5: 0x0000000100240b48
cc1plus`cxx_eval_constant_expression(ctx=0x00007fff5fbfeaa0,
t=0x0000000142781300, lval=<unavailable>, non_constant_p=0x00007fff5fbfea9e,
overflow_p=0x00007fff5fbfea9f, jump_target=0x0000000000000000) + 4376 at
constexpr.c:3346
    frame #6: 0x0000000100245ea6
cc1plus`cxx_eval_outermost_constant_expr(t=0x0000000142781300,
allow_non_constant=<unavailable>, strict=<unavailable>,
object=0x000000014260ecf0) + 358 at constexpr.c:3512
    frame #7: 0x000000010024983e
cc1plus`maybe_constant_init(t=0x0000000142781300, decl=0x000000014260ecf0) +
174 at constexpr.c:3716
    frame #8: 0x00000001000c884f
cc1plus`store_init_value(decl=0x000000014260ecf0, init=<unavailable>,
cleanups=<unavailable>, flags=<unavailable>) + 495 at typeck2.c:833
    frame #9: 0x0000000100053286
cc1plus`check_initializer(decl=0x000000014260ecf0, init=0x0000000142781300,
flags=5, cleanups=0x00007fff5fbfec40) + 422 at decl.c:5982
    frame #10: 0x00000001000550fe
cc1plus`cp_finish_decl(decl=0x000000014260ecf0, init=0x0000000142781300,
init_const_expr_p=<unavailable>, asmspec_tree=<unavailable>,
flags=<unavailable>) + 3374 at decl.c:6618
    frame #11: 0x000000010014bf60
cc1plus`cp_parser_init_declarator(parser=0x0000000142783000,
decl_specifiers=0x00007fff5fbfed80, checks=0x0000000000000000,
function_definition_allowed_p=<unavailable>, member_p=<unavailable>,
declares_class_or_enum=<unavailable>, function_definition_p=0x00007fff5fbfed77,
maybe_range_for_decl=0x0000000000000000, init_loc=0x00007fff5fbfed7c) + 2000 at
parser.c:17291
    frame #12: 0x000000010014d9be
cc1plus`cp_parser_simple_declaration(parser=0x0000000142783000,
function_definition_allowed_p=true, maybe_range_for_decl=0x0000000000000000) +
558 at parser.c:11601
    frame #13: 0x000000010014dd34
cc1plus`cp_parser_block_declaration(parser=0x0000000142783000,
statement_p=<unavailable>) + 116 at parser.c:11475
    frame #14: 0x000000010015787a
cc1plus`cp_parser_declaration(parser=0x0000000142783000) + 442 at
parser.c:11372
    frame #15: 0x0000000100157acd
cc1plus`cp_parser_declaration_seq_opt(parser=0x0000000142783000) + 125 at
parser.c:11258
    frame #16: 0x0000000100157e22 cc1plus`c_parse_file() + 22 at parser.c:4109
    frame #17: 0x0000000100157e0c cc1plus`c_parse_file() + 604
    frame #18: 0x00000001002a2b96 cc1plus`c_common_parse_file() + 246 at
c-opts.c:1052
    frame #19: 0x0000000100b6ffec cc1plus`compile_file + 44 at toplev.c:592
    frame #20: 0x0000000100fe9be0 cc1plus`toplev::main(int, char**) + 1292 at
toplev.c:2045
    frame #21: 0x0000000100fe96d4 cc1plus`toplev::main(this=<unavailable>,
argc=39, argv=0x00007fff5fbff080) + 788
    frame #22: 0x0000000100fea83c cc1plus`main(argc=<unavailable>,
argv=<unavailable>) + 44 at main.c:38
    frame #23: 0x00007fff94ce75c9 libdyld.dylib`start + 1
(lldb)


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
  2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
                   ` (9 preceding siblings ...)
  2015-01-22 18:43 ` howarth at bromo dot med.uc.edu
@ 2015-01-22 22:00 ` jason at gcc dot gnu.org
  2015-01-22 22:15 ` howarth at bromo dot med.uc.edu
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jason at gcc dot gnu.org @ 2015-01-22 22:00 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org

--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> ---
This seems to be because darwin_build_constant_cfstring uses CONST_DECL for a
global variable, and the C++ front end expects CONST_DECL to be used only for
enumerators.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
  2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
                   ` (10 preceding siblings ...)
  2015-01-22 22:00 ` jason at gcc dot gnu.org
@ 2015-01-22 22:15 ` howarth at bromo dot med.uc.edu
  2015-01-23 10:15 ` dominiq at lps dot ens.fr
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: howarth at bromo dot med.uc.edu @ 2015-01-22 22:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from howarth at bromo dot med.uc.edu ---
(In reply to Jason Merrill from comment #11)
> This seems to be because darwin_build_constant_cfstring uses CONST_DECL for
> a global variable, and the C++ front end expects CONST_DECL to be used only
> for enumerators.

Any ideas on how to recode that?


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
  2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
                   ` (11 preceding siblings ...)
  2015-01-22 22:15 ` howarth at bromo dot med.uc.edu
@ 2015-01-23 10:15 ` dominiq at lps dot ens.fr
  2015-01-23 14:59 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-01-23 10:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
(In reply to Jason Merrill from comment #11)
> This seems to be because darwin_build_constant_cfstring uses CONST_DECL for
> a global variable, and the C++ front end expects CONST_DECL to be used only
> for enumerators.

An error would be better than an ICE.

For the record, there are also several similar ICEs in the obj-c++ tests:

FAIL: obj-c++.dg/strings/const-str-5.mm -fnext-runtime (internal compiler
error)
FAIL: obj-c++.dg/strings/strings-1.mm -fnext-runtime (internal compiler error)
FAIL: obj-c++.dg/torture/strings/const-cfstring-1.mm   -O0  -fnext-runtime
(internal compiler error)
FAIL: obj-c++.dg/torture/strings/const-cfstring-3.mm   -O0  -fnext-runtime
(internal compiler error)
FAIL: obj-c++.dg/torture/strings/const-cfstring-4.mm   -O*  -fnext-runtime
(internal compiler error)
FAIL: obj-c++.dg/torture/strings/const-str-10.mm   -O*  -fnext-runtime
(internal compiler error)
FAIL: obj-c++.dg/torture/strings/const-str-11.mm   -O*  -fnext-runtime
(internal compiler error)
FAIL: obj-c++.dg/torture/strings/const-str-8.mm   -O*  -fnext-runtime (internal
compiler error)
FAIL: obj-c++.dg/torture/strings/const-str-9.mm   -O*  -fnext-runtime (internal
compiler error)


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
  2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
                   ` (12 preceding siblings ...)
  2015-01-23 10:15 ` dominiq at lps dot ens.fr
@ 2015-01-23 14:59 ` jason at gcc dot gnu.org
  2015-01-23 16:33 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jason at gcc dot gnu.org @ 2015-01-23 14:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Jan 23 14:59:10 2015
New Revision: 220041

URL: https://gcc.gnu.org/viewcvs?rev=220041&root=gcc&view=rev
Log:
    PR c++/64727
    * constexpr.c (cxx_eval_constant_expression): Allow for lvalue use
    of CONST_DECL.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
  2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
                   ` (13 preceding siblings ...)
  2015-01-23 14:59 ` jason at gcc dot gnu.org
@ 2015-01-23 16:33 ` jason at gcc dot gnu.org
  2015-01-23 20:07 ` howarth at bromo dot med.uc.edu
  2015-01-23 21:43 ` jason at gcc dot gnu.org
  16 siblings, 0 replies; 18+ messages in thread
From: jason at gcc dot gnu.org @ 2015-01-23 16:33 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |WAITING

--- Comment #15 from Jason Merrill <jason at gcc dot gnu.org> ---
Should be fixed now.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
  2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
                   ` (14 preceding siblings ...)
  2015-01-23 16:33 ` jason at gcc dot gnu.org
@ 2015-01-23 20:07 ` howarth at bromo dot med.uc.edu
  2015-01-23 21:43 ` jason at gcc dot gnu.org
  16 siblings, 0 replies; 18+ messages in thread
From: howarth at bromo dot med.uc.edu @ 2015-01-23 20:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from howarth at bromo dot med.uc.edu ---
(In reply to Jason Merrill from comment #15)
> Should be fixed now.

Confirmed on x86_64-apple-darwin14 with...

 make -k check RUNTESTFLAGS="dg-torture.exp=darwin-cfstring-3.C
--target_board=unix'{-m32,-m64}'"


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11
  2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
                   ` (15 preceding siblings ...)
  2015-01-23 20:07 ` howarth at bromo dot med.uc.edu
@ 2015-01-23 21:43 ` jason at gcc dot gnu.org
  16 siblings, 0 replies; 18+ messages in thread
From: jason at gcc dot gnu.org @ 2015-01-23 21:43 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |5.0

--- Comment #17 from Jason Merrill <jason at gcc dot gnu.org> ---
OK, closing.


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2015-01-23 21:43 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-22 10:10 [Bug c++/64727] New: [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11 dominiq at lps dot ens.fr
2015-01-22 10:15 ` [Bug c++/64727] " jakub at gcc dot gnu.org
2015-01-22 10:40 ` dominiq at lps dot ens.fr
2015-01-22 10:46 ` jakub at gcc dot gnu.org
2015-01-22 10:54 ` dominiq at lps dot ens.fr
2015-01-22 10:58 ` jakub at gcc dot gnu.org
2015-01-22 15:33 ` dominiq at lps dot ens.fr
2015-01-22 17:13 ` howarth at bromo dot med.uc.edu
2015-01-22 17:23 ` dominiq at lps dot ens.fr
2015-01-22 17:27 ` howarth at bromo dot med.uc.edu
2015-01-22 18:43 ` howarth at bromo dot med.uc.edu
2015-01-22 22:00 ` jason at gcc dot gnu.org
2015-01-22 22:15 ` howarth at bromo dot med.uc.edu
2015-01-23 10:15 ` dominiq at lps dot ens.fr
2015-01-23 14:59 ` jason at gcc dot gnu.org
2015-01-23 16:33 ` jason at gcc dot gnu.org
2015-01-23 20:07 ` howarth at bromo dot med.uc.edu
2015-01-23 21:43 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).