public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/24672]  New: ICE on missing parentheses for constructor
@ 2005-11-04 12:05 reichelt at gcc dot gnu dot org
  2005-11-04 13:28 ` [Bug target/24672] " pinskia at gcc dot gnu dot org
  2006-05-07 21:22 ` reichelt at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-11-04 12:05 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet (which is similar to PR 22257)
causes an ICE on x86-64:

=============================
struct A
{
    int i, j;
    A : i(), j() {}
};
=============================

bug.cc:4: error: 'A::i' cannot appear in a constant-expression
bug.cc:4: error: a function call cannot appear in a constant-expression
bug.cc:4: error: name 'A' has incomplete type
bug.cc:4: error: declaration of 'A A::j()'
bug.cc:3: error: conflicts with previous declaration 'int A::j'
bug.cc: In member function 'A A::j()':
bug.cc:4: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in classify_argument, at config/i386/i386.c:2653
Please submit a full bug report, [etc.]

Since classify_argument is a x86_64-specific function, the ICE doesn't
appear on i686. So it's target dependent.
OTOH it might be a frontend bug that we end up in classify_argument at all
with invalid data.


-- 
           Summary: ICE on missing parentheses for constructor
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
 BugsThisDependsOn: 19964,22257


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


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

* [Bug target/24672] ICE on missing parentheses for constructor
  2005-11-04 12:05 [Bug target/24672] New: ICE on missing parentheses for constructor reichelt at gcc dot gnu dot org
@ 2005-11-04 13:28 ` pinskia at gcc dot gnu dot org
  2006-05-07 21:22 ` reichelt at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-04 13:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-11-04 13:28 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |error-recovery
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-04 13:28:42
               date|                            |


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


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

* [Bug target/24672] ICE on missing parentheses for constructor
  2005-11-04 12:05 [Bug target/24672] New: ICE on missing parentheses for constructor reichelt at gcc dot gnu dot org
  2005-11-04 13:28 ` [Bug target/24672] " pinskia at gcc dot gnu dot org
@ 2006-05-07 21:22 ` reichelt at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-07 21:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from reichelt at gcc dot gnu dot org  2006-05-07 21:22 -------


*** This bug has been marked as a duplicate of 27421 ***


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2006-05-07 21:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-04 12:05 [Bug target/24672] New: ICE on missing parentheses for constructor reichelt at gcc dot gnu dot org
2005-11-04 13:28 ` [Bug target/24672] " pinskia at gcc dot gnu dot org
2006-05-07 21:22 ` reichelt at gcc dot gnu dot 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).