public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52743] New: g++-4.7.0 seg faults on overload functions.
@ 2012-03-27 19:37 meng at g dot clemson.edu
  2012-03-29 13:48 ` [Bug c++/52743] " jason at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: meng at g dot clemson.edu @ 2012-03-27 19:37 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52743
           Summary: g++-4.7.0 seg faults on overload functions.
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: meng@g.clemson.edu


Created attachment 27016
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27016
source code causing the seg fault

void composite (int const (&) [2]);
void composite (int const (&) [3]);

int main ()
{
 composite({0,1});

 return 0;
}

compiled with :
$HOME/gcc/4.7.0/bin/c++ -v -save-temps -std=c++0x -Wall -Wextra
-fno-strict-aliasing -fwrapv -O2 main.cc

output from g++-4.7.0 is :
Reading specs from /home/meng/gcc/4.7.0/lib/gcc/i686-pc-linux-gnu/4.7.0/specs
COLLECT_GCC=/home/meng/gcc/4.7.0/bin/c++
COLLECT_LTO_WRAPPER=/home/meng/gcc/4.7.0/libexec/gcc/i686-pc-linux-gnu/4.7.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ./configure --prefix=/home/meng/gcc/4.7.0/
--enable-languages=c,c++
Thread model: posix
gcc version 4.7.0 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++11' '-Wall' '-Wextra'
'-fno-strict-aliasing' '-fwrapv' '-O2' '-shared-libgcc' '-mtune=generic'
'-march=pentiumpro'
 /home/meng/gcc/4.7.0/libexec/gcc/i686-pc-linux-gnu/4.7.0/cc1plus -E -quiet -v
-D_GNU_SOURCE main.cc -mtune=generic -march=pentiumpro -std=c++11 -Wall -Wextra
-fno-strict-aliasing -fwrapv -O2 -fpch-preprocess -o main.ii
ignoring nonexistent directory
"/home/meng/gcc/4.7.0/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:

/home/meng/gcc/4.7.0/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0

/home/meng/gcc/4.7.0/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/i686-pc-linux-gnu

/home/meng/gcc/4.7.0/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/backward
 /home/meng/gcc/4.7.0/lib/gcc/i686-pc-linux-gnu/4.7.0/include
 /usr/local/include
 /home/meng/gcc/4.7.0/include
 /home/meng/gcc/4.7.0/lib/gcc/i686-pc-linux-gnu/4.7.0/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++11' '-Wall' '-Wextra'
'-fno-strict-aliasing' '-fwrapv' '-O2' '-shared-libgcc' '-mtune=generic'
'-march=pentiumpro'
 /home/meng/gcc/4.7.0/libexec/gcc/i686-pc-linux-gnu/4.7.0/cc1plus
-fpreprocessed main.ii -quiet -dumpbase main.cc -mtune=generic
-march=pentiumpro -auxbase main -O2 -Wall -Wextra -std=c++11 -version
-fno-strict-aliasing -fwrapv -o main.s
GNU C++ (GCC) version 4.7.0 (i686-pc-linux-gnu)
    compiled by GNU C version 4.7.0, GMP version 4.3.2, MPFR version 2.4.2, MPC
version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (GCC) version 4.7.0 (i686-pc-linux-gnu)
    compiled by GNU C version 4.7.0, GMP version 4.3.2, MPFR version 2.4.2, MPC
version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 25995eec1d8a7c765ef4a29ef128f2c2
main.cc: In function ‘int main()’:
main.cc:6:17: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug c++/52743] g++-4.7.0 seg faults on overload functions.
  2012-03-27 19:37 [Bug c++/52743] New: g++-4.7.0 seg faults on overload functions meng at g dot clemson.edu
@ 2012-03-29 13:48 ` jason at gcc dot gnu.org
  2012-03-29 14:19 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2012-03-29 13:48 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2012-03-29
                 CC|                            |jason at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |jason at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1


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

* [Bug c++/52743] g++-4.7.0 seg faults on overload functions.
  2012-03-27 19:37 [Bug c++/52743] New: g++-4.7.0 seg faults on overload functions meng at g dot clemson.edu
  2012-03-29 13:48 ` [Bug c++/52743] " jason at gcc dot gnu.org
@ 2012-03-29 14:19 ` jason at gcc dot gnu.org
  2012-03-29 14:47 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2012-03-29 14:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2012-03-29 14:14:07 UTC ---
Author: jason
Date: Thu Mar 29 14:14:00 2012
New Revision: 185963

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185963
Log:
    PR c++/52743
    * call.c (compare_ics): Handle ck_aggr like ck_list.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/initlist-array3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/52743] g++-4.7.0 seg faults on overload functions.
  2012-03-27 19:37 [Bug c++/52743] New: g++-4.7.0 seg faults on overload functions meng at g dot clemson.edu
  2012-03-29 13:48 ` [Bug c++/52743] " jason at gcc dot gnu.org
  2012-03-29 14:19 ` jason at gcc dot gnu.org
@ 2012-03-29 14:47 ` jason at gcc dot gnu.org
  2012-03-29 14:58 ` jason at gcc dot gnu.org
  2012-04-13 18:23 ` drwowe at yahoo dot com
  4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2012-03-29 14:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2012-03-29 14:45:17 UTC ---
Author: jason
Date: Thu Mar 29 14:45:09 2012
New Revision: 185964

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185964
Log:
    PR c++/52743
    * call.c (compare_ics): Handle ck_aggr like ck_list.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/initlist-array3.C
Modified:
    branches/gcc-4_7-branch/gcc/cp/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/call.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


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

* [Bug c++/52743] g++-4.7.0 seg faults on overload functions.
  2012-03-27 19:37 [Bug c++/52743] New: g++-4.7.0 seg faults on overload functions meng at g dot clemson.edu
                   ` (2 preceding siblings ...)
  2012-03-29 14:47 ` jason at gcc dot gnu.org
@ 2012-03-29 14:58 ` jason at gcc dot gnu.org
  2012-04-13 18:23 ` drwowe at yahoo dot com
  4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2012-03-29 14:58 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.1

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-03-29 14:46:43 UTC ---
Fixed.


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

* [Bug c++/52743] g++-4.7.0 seg faults on overload functions.
  2012-03-27 19:37 [Bug c++/52743] New: g++-4.7.0 seg faults on overload functions meng at g dot clemson.edu
                   ` (3 preceding siblings ...)
  2012-03-29 14:58 ` jason at gcc dot gnu.org
@ 2012-04-13 18:23 ` drwowe at yahoo dot com
  4 siblings, 0 replies; 6+ messages in thread
From: drwowe at yahoo dot com @ 2012-04-13 18:23 UTC (permalink / raw)
  To: gcc-bugs

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

D W <drwowe at yahoo dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |drwowe at yahoo dot com

--- Comment #4 from D W <drwowe at yahoo dot com> 2012-04-13 18:23:19 UTC ---
*** Bug 52951 has been marked as a duplicate of this bug. ***


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

end of thread, other threads:[~2012-04-13 18:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-27 19:37 [Bug c++/52743] New: g++-4.7.0 seg faults on overload functions meng at g dot clemson.edu
2012-03-29 13:48 ` [Bug c++/52743] " jason at gcc dot gnu.org
2012-03-29 14:19 ` jason at gcc dot gnu.org
2012-03-29 14:47 ` jason at gcc dot gnu.org
2012-03-29 14:58 ` jason at gcc dot gnu.org
2012-04-13 18:23 ` drwowe at yahoo dot com

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).