public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49589] New: [C++0x] Internal compile error at decltype
@ 2011-06-30  9:21 jarrydb at cse dot unsw.edu.au
  2011-07-01 21:15 ` [Bug c++/49589] " jason at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jarrydb at cse dot unsw.edu.au @ 2011-06-30  9:21 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [C++0x] Internal compile error at decltype
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jarrydb@cse.unsw.edu.au
              Host: x86_64-unknown-linux-gnu
            Target: x86_64-unknown-linux-gnu
             Build: x86_64-unknown-linux-gnu


Created attachment 24643
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24643
ICE with decltype

The attached code causes the compiler to exit with a segmentation fault at a
use of decltype.

g++ --std=gnu++0x decltype_error_2.ii
decltype_error_2.cpp:45:31: 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.

output of gcc -v

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/jarrydb/current/soft/install-latest/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/jarrydb/current/soft/src/gcc-svn/configure
--prefix=/home/jarrydb/current/soft/install-latest --disable-multilib
--enable-languages=c,c++,go
Thread model: posix
gcc version 4.7.0 20110630 (experimental) (GCC)


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

* [Bug c++/49589] [C++0x] Internal compile error at decltype
  2011-06-30  9:21 [Bug c++/49589] New: [C++0x] Internal compile error at decltype jarrydb at cse dot unsw.edu.au
@ 2011-07-01 21:15 ` jason at gcc dot gnu.org
  2011-07-04 21:44 ` jason at gcc dot gnu.org
  2011-07-04 22:16 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2011-07-01 21:15 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011.07.01 21:15:19
                 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] 4+ messages in thread

* [Bug c++/49589] [C++0x] Internal compile error at decltype
  2011-06-30  9:21 [Bug c++/49589] New: [C++0x] Internal compile error at decltype jarrydb at cse dot unsw.edu.au
  2011-07-01 21:15 ` [Bug c++/49589] " jason at gcc dot gnu.org
@ 2011-07-04 21:44 ` jason at gcc dot gnu.org
  2011-07-04 22:16 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2011-07-04 21:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-07-04 21:44:07 UTC ---
Author: jason
Date: Mon Jul  4 21:44:04 2011
New Revision: 175835

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175835
Log:
    DR 1207
    PR c++/49589
    * mangle.c (write_expression): Handle 'this'.
    * parser.c (cp_parser_postfix_dot_deref_expression): Allow
    incomplete *this.
    * semantics.c (potential_constant_expression_1): Check that
    DECL_CONTEXT is set on 'this'.

Added:
    trunk/gcc/testsuite/g++.dg/abi/mangle48.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/mangle.c
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/49589] [C++0x] Internal compile error at decltype
  2011-06-30  9:21 [Bug c++/49589] New: [C++0x] Internal compile error at decltype jarrydb at cse dot unsw.edu.au
  2011-07-01 21:15 ` [Bug c++/49589] " jason at gcc dot gnu.org
  2011-07-04 21:44 ` jason at gcc dot gnu.org
@ 2011-07-04 22:16 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2011-07-04 22:16 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-07-04 22:16:12 UTC ---
Fixed.


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

end of thread, other threads:[~2011-07-04 22:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-30  9:21 [Bug c++/49589] New: [C++0x] Internal compile error at decltype jarrydb at cse dot unsw.edu.au
2011-07-01 21:15 ` [Bug c++/49589] " jason at gcc dot gnu.org
2011-07-04 21:44 ` jason at gcc dot gnu.org
2011-07-04 22:16 ` 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).