public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/22008] New: ICE on valid code
@ 2005-06-10 18:18 ppluzhnikov at charter dot net
  2005-06-10 18:56 ` [Bug c++/22008] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ppluzhnikov at charter dot net @ 2005-06-10 18:18 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1116 bytes --]

The test was reduced from PlumHall test X_132p92:

$ cat x_132p92.cc
struct X_132p92
{
    static int k;                   // [1]
    X_132p92(const X_132p92 &x);    // [2]
};
void f_132p92(volatile X_132p92 x)  // [3]
{
    bool b = x.k >= 1;
}

$ g++4 -c x_132p92.cc
x_132p92.cc: In function â:
x_132p92.cc:8: internal compiler error: in create_tmp_var, at gimplify.c:368
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Commenting out "static" at [1], copy-ctor at [2], or volatile at [3]
"cures" the bug.

-- 
           Summary: ICE on valid code
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ppluzhnikov at charter dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: same
  GCC host triplet: i386-redhat-linux, x86_64-unknown-linux-gnu
GCC target triplet: same


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


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

end of thread, other threads:[~2005-09-02 15:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-10 18:18 [Bug c++/22008] New: ICE on valid code ppluzhnikov at charter dot net
2005-06-10 18:56 ` [Bug c++/22008] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-01 19:59 ` pinskia at gcc dot gnu dot org
2005-07-06 17:04 ` mmitchel at gcc dot gnu dot org
2005-09-02 15:41 ` [Bug c++/22008] [4.0/4.1 Regression] ICE on valid code, create_tmp_var mmitchel 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).