public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27666]  New: [4.0/4.1/4.2 regression] ICE with volatile in conditional expression
@ 2006-05-18 19:24 reichelt at gcc dot gnu dot org
  2006-05-18 21:35 ` [Bug c++/27666] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-18 19:24 UTC (permalink / raw)
  To: gcc-bugs

The following code snippet triggers an ICE since GCC 3.0
(it disappeared in 3.3.[2-6]):

=======================================
struct A
{
    A(int);
};

void foo(volatile A a) { 1 ? a : 0; }
=======================================

bug.cc: In function 'void foo(A)':
bug.cc:6: error: no matching function for call to 'A::A(volatile A)'
bug.cc:3: note: candidates are: A::A(int)
bug.cc:2: note:                 A::A(const A&)
bug.cc:6: error:   initializing temporary from result of 'A::A(int)'
bug.cc:6: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in build_conditional_expr, at cp/call.c:3326
Please submit a full bug report, [etc.]

I'm not sure whether the error message before the ICE is correct
or whether the code is in fact valid.


-- 
           Summary: [4.0/4.1/4.2 regression] ICE with volatile in
                    conditional expression
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

end of thread, other threads:[~2007-02-03 17:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-18 19:24 [Bug c++/27666] New: [4.0/4.1/4.2 regression] ICE with volatile in conditional expression reichelt at gcc dot gnu dot org
2006-05-18 21:35 ` [Bug c++/27666] " pinskia at gcc dot gnu dot org
2006-05-21 21:26 ` pinskia at gcc dot gnu dot org
2006-06-04 19:14 ` mmitchel at gcc dot gnu dot org
2006-06-06 22:12 ` mmitchel at gcc dot gnu dot org
2006-06-06 22:19 ` reichelt at gcc dot gnu dot org
2006-06-06 22:36 ` mark at codesourcery dot com
2006-06-16  2:36 ` mmitchel at gcc dot gnu dot org
2006-06-16  2:47 ` [Bug c++/27666] [4.0/4.1 " mmitchel at gcc dot gnu dot org
2006-06-16  6:10 ` mmitchel at gcc dot gnu dot org
2006-06-16  6:10 ` mmitchel at gcc dot gnu dot org
2006-06-16  6:25 ` [Bug c++/27666] [4.0 " mmitchel at gcc dot gnu dot org
2007-02-03 17:03 ` gdr 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).