public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46071] New: ill-formed use of decltype and auto (c++0x) causes segfault
@ 2010-10-18 17:55 enniobarbaro at alice dot it
  2010-10-18 18:23 ` [Bug c++/46071] [C++0x] ill-formed use of decltype and auto " redi at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: enniobarbaro at alice dot it @ 2010-10-18 17:55 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ill-formed use of decltype and auto (c++0x) causes
                    segfault
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: enniobarbaro@alice.it


Created attachment 22080
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22080
preprocessed code

Hi all,

The attached code causes a segfault in gcc 4.5.1 (Debian 4.5.1-9), maybe an
infinite recursion of decltype?

my system is a debian testing (kernel 2-6.32-5-amd64)

gcc configuration options:

Target: x86_64-linux-gnu                                                        
Configured with: ../src/configure -v --with-pkgversion='Debian 4.5.1-9'
--with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.5 --enable-shared --enable-multiarch
--enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-plugin --enable-gold --with-plugin-ld=ld.gold --enable-objc-gc
--with-arch-32=i586 --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu      
Thread model: posix                                                             
gcc version 4.5.1 (Debian 4.5.1-9)   

command line and output:
gcc-4.5 -std=c++0x bug.cpp                                                      
gcc-4.5: Internal error: Segmentation fault (program cc1plus)                   
Please submit a full bug report.                                                
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.

Ennio


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

* [Bug c++/46071] [C++0x] ill-formed use of decltype and auto causes segfault
  2010-10-18 17:55 [Bug c++/46071] New: ill-formed use of decltype and auto (c++0x) causes segfault enniobarbaro at alice dot it
@ 2010-10-18 18:23 ` redi at gcc dot gnu.org
  2011-05-16 21:36 ` paolo.carlini at oracle dot com
  2011-05-25 21:35 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2010-10-18 18:23 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.10.18 18:23:23
     Ever Confirmed|0                           |1
      Known to fail|                            |4.4.4, 4.5.2, 4.6.0


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

* [Bug c++/46071] [C++0x] ill-formed use of decltype and auto causes segfault
  2010-10-18 17:55 [Bug c++/46071] New: ill-formed use of decltype and auto (c++0x) causes segfault enniobarbaro at alice dot it
  2010-10-18 18:23 ` [Bug c++/46071] [C++0x] ill-formed use of decltype and auto " redi at gcc dot gnu.org
@ 2011-05-16 21:36 ` paolo.carlini at oracle dot com
  2011-05-25 21:35 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-05-16 21:36 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-05-16 21:20:25 UTC ---
Jason, this doesn't ICE anymore in mainline, I guess thanks to your recent
work. Shall we close it as fixed / dup ?


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

* [Bug c++/46071] [C++0x] ill-formed use of decltype and auto causes segfault
  2010-10-18 17:55 [Bug c++/46071] New: ill-formed use of decltype and auto (c++0x) causes segfault enniobarbaro at alice dot it
  2010-10-18 18:23 ` [Bug c++/46071] [C++0x] ill-formed use of decltype and auto " redi at gcc dot gnu.org
  2011-05-16 21:36 ` paolo.carlini at oracle dot com
@ 2011-05-25 21:35 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-05-25 21:35 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to work|                            |4.7.0
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-05-25 21:19:00 UTC ---
Fixed.


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

end of thread, other threads:[~2011-05-25 21:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-18 17:55 [Bug c++/46071] New: ill-formed use of decltype and auto (c++0x) causes segfault enniobarbaro at alice dot it
2010-10-18 18:23 ` [Bug c++/46071] [C++0x] ill-formed use of decltype and auto " redi at gcc dot gnu.org
2011-05-16 21:36 ` paolo.carlini at oracle dot com
2011-05-25 21:35 ` paolo.carlini at oracle 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).