public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47277] New: pseudo destructor code that cause an internal compiler error with std=gnu++0x
@ 2011-01-13  9:19 borntraeger at de dot ibm.com
  2011-01-13 10:31 ` [Bug c++/47277] [C++0x] " redi at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: borntraeger at de dot ibm.com @ 2011-01-13  9:19 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: pseudo destructor code that cause an internal compiler
                    error with std=gnu++0x
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: borntraeger@de.ibm.com


I have a testcases that triggered an ICE:

$ /space/gcc/install-trunk/bin/g++ -std=gnu++0x -W test.cc   
test.cc: In function 'int main()':
test.cc:4:18: internal compiler error: in constructor_name_p, at
cp/name-lookup.c:1846
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

This is the minimized testcase:

int main(void) {
           enum e {};
           e ev;
           ev.e::~e_u();
}


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

* [Bug c++/47277] [C++0x] pseudo destructor code that cause an internal compiler error with std=gnu++0x
  2011-01-13  9:19 [Bug c++/47277] New: pseudo destructor code that cause an internal compiler error with std=gnu++0x borntraeger at de dot ibm.com
@ 2011-01-13 10:31 ` redi at gcc dot gnu.org
  2011-05-25 15:15 ` paolo.carlini at oracle dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu.org @ 2011-01-13 10:31 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.01.13 09:54:56
            Summary|pseudo destructor code that |[C++0x] pseudo destructor
                   |cause an internal compiler  |code that cause an internal
                   |error with std=gnu++0x      |compiler error with
                   |                            |std=gnu++0x
     Ever Confirmed|0                           |1
      Known to fail|                            |4.5.2, 4.6.0

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-01-13 09:54:56 UTC ---
confirmed


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

* [Bug c++/47277] [C++0x] pseudo destructor code that cause an internal compiler error with std=gnu++0x
  2011-01-13  9:19 [Bug c++/47277] New: pseudo destructor code that cause an internal compiler error with std=gnu++0x borntraeger at de dot ibm.com
  2011-01-13 10:31 ` [Bug c++/47277] [C++0x] " redi at gcc dot gnu.org
@ 2011-05-25 15:15 ` paolo.carlini at oracle dot com
  2011-05-27 17:00 ` jason at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-05-25 15:15 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-05-25 14:52:26 UTC ---
Very likely due to the fix for c++/48935, we don't ICE anymore. However, as I
noticed when I tried to fix this one, we always print:

  ‘main()::e::~e’

in the error message for line #4, that is, there is code in the front-end which
disregards the actual '~e_u()'. Should this be improved as part of these PRs?


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

* [Bug c++/47277] [C++0x] pseudo destructor code that cause an internal compiler error with std=gnu++0x
  2011-01-13  9:19 [Bug c++/47277] New: pseudo destructor code that cause an internal compiler error with std=gnu++0x borntraeger at de dot ibm.com
  2011-01-13 10:31 ` [Bug c++/47277] [C++0x] " redi at gcc dot gnu.org
  2011-05-25 15:15 ` paolo.carlini at oracle dot com
@ 2011-05-27 17:00 ` jason at gcc dot gnu.org
  2011-05-27 19:37 ` jason at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-27 17:00 UTC (permalink / raw)
  To: gcc-bugs

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

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

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


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

* [Bug c++/47277] [C++0x] pseudo destructor code that cause an internal compiler error with std=gnu++0x
  2011-01-13  9:19 [Bug c++/47277] New: pseudo destructor code that cause an internal compiler error with std=gnu++0x borntraeger at de dot ibm.com
                   ` (2 preceding siblings ...)
  2011-05-27 17:00 ` jason at gcc dot gnu.org
@ 2011-05-27 19:37 ` jason at gcc dot gnu.org
  2011-05-27 19:39 ` paolo.carlini at oracle dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-27 19:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-27 19:32:18 UTC ---
Author: jason
Date: Fri May 27 19:32:14 2011
New Revision: 174355

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174355
Log:
    PR c++/47277
    * parser.c (cp_parser_unqualified_id): Don't check
    constructor_name_p for enums.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/enum18.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/47277] [C++0x] pseudo destructor code that cause an internal compiler error with std=gnu++0x
  2011-01-13  9:19 [Bug c++/47277] New: pseudo destructor code that cause an internal compiler error with std=gnu++0x borntraeger at de dot ibm.com
                   ` (3 preceding siblings ...)
  2011-05-27 19:37 ` jason at gcc dot gnu.org
@ 2011-05-27 19:39 ` paolo.carlini at oracle dot com
  2011-05-27 20:58 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-05-27 19:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-05-27 19:33:30 UTC ---
Oops, sorry about the wrong remark about the disappeared ICE, I had the
compiler built with checking disabled to speed up library library testing. The
rest of the comment lives, however ;)


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

* [Bug c++/47277] [C++0x] pseudo destructor code that cause an internal compiler error with std=gnu++0x
  2011-01-13  9:19 [Bug c++/47277] New: pseudo destructor code that cause an internal compiler error with std=gnu++0x borntraeger at de dot ibm.com
                   ` (4 preceding siblings ...)
  2011-05-27 19:39 ` paolo.carlini at oracle dot com
@ 2011-05-27 20:58 ` jason at gcc dot gnu.org
  2011-05-28 22:02 ` jason at gcc dot gnu.org
  2011-05-29  0:45 ` jason at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-27 20:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-27 20:48:27 UTC ---
Author: jason
Date: Fri May 27 20:48:24 2011
New Revision: 174363

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174363
Log:
    PR c++/47277
    * parser.c (cp_parser_unqualified_id): Don't check
    constructor_name_p for enums.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/enum18.C
Modified:
    branches/gcc-4_6-branch/gcc/cp/ChangeLog
    branches/gcc-4_6-branch/gcc/cp/parser.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog


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

* [Bug c++/47277] [C++0x] pseudo destructor code that cause an internal compiler error with std=gnu++0x
  2011-01-13  9:19 [Bug c++/47277] New: pseudo destructor code that cause an internal compiler error with std=gnu++0x borntraeger at de dot ibm.com
                   ` (5 preceding siblings ...)
  2011-05-27 20:58 ` jason at gcc dot gnu.org
@ 2011-05-28 22:02 ` jason at gcc dot gnu.org
  2011-05-29  0:45 ` jason at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-28 22:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-28 22:01:32 UTC ---
Author: jason
Date: Sat May 28 22:01:28 2011
New Revision: 174385

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174385
Log:
    PR c++/47277
    * parser.c (cp_parser_pseudo_destructor_name): Commit to parse
    after we see the ~.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/enum18.C


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

* [Bug c++/47277] [C++0x] pseudo destructor code that cause an internal compiler error with std=gnu++0x
  2011-01-13  9:19 [Bug c++/47277] New: pseudo destructor code that cause an internal compiler error with std=gnu++0x borntraeger at de dot ibm.com
                   ` (6 preceding siblings ...)
  2011-05-28 22:02 ` jason at gcc dot gnu.org
@ 2011-05-29  0:45 ` jason at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-29  0:45 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-29 00:39:37 UTC ---
ICE fixed for 4.6.1, error improved for 4.7.0.


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

end of thread, other threads:[~2011-05-29  0:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-13  9:19 [Bug c++/47277] New: pseudo destructor code that cause an internal compiler error with std=gnu++0x borntraeger at de dot ibm.com
2011-01-13 10:31 ` [Bug c++/47277] [C++0x] " redi at gcc dot gnu.org
2011-05-25 15:15 ` paolo.carlini at oracle dot com
2011-05-27 17:00 ` jason at gcc dot gnu.org
2011-05-27 19:37 ` jason at gcc dot gnu.org
2011-05-27 19:39 ` paolo.carlini at oracle dot com
2011-05-27 20:58 ` jason at gcc dot gnu.org
2011-05-28 22:02 ` jason at gcc dot gnu.org
2011-05-29  0:45 ` 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).