public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/22308] New: Failure to diagnose violation of constraint 6.516p2
@ 2005-07-05 12:06 neil at gcc dot gnu dot org
  2005-07-05 12:53 ` [Bug c/22308] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: neil at gcc dot gnu dot org @ 2005-07-05 12:06 UTC (permalink / raw)
  To: gcc-bugs

With -ansi -pedantic-errors, GCC fails to reject the following assignment.

struct foo s;
volatile struct foo t;
struct foo { const int z; };

void bar (void)
{
  t = s;
}

GCC is tricked by the delayed completion of a qualified form of the type.

-- 
           Summary: Failure to diagnose violation of constraint 6.516p2
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: neil at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-07-08 14:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-05 12:06 [Bug c/22308] New: Failure to diagnose violation of constraint 6.516p2 neil at gcc dot gnu dot org
2005-07-05 12:53 ` [Bug c/22308] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-05 15:19 ` jsm28 at gcc dot gnu dot org
2005-07-05 17:35 ` cvs-commit at gcc dot gnu dot org
2005-07-05 21:19 ` [Bug c/22308] [3.4/4.0 " cvs-commit at gcc dot gnu dot org
2005-07-08 13:15 ` [Bug c/22308] [4.0 " cvs-commit at gcc dot gnu dot org
2005-07-08 14:46 ` jsm28 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).