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
* [Bug c/22308] [3.4/4.0/4.1 Regression] Failure to diagnose violation of constraint 6.516p2
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 ` pinskia at gcc dot gnu dot org
2005-07-05 15:19 ` jsm28 at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-05 12:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-05 12:53 -------
Confirmed, a regression from 2.95.3.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |accepts-invalid
Known to fail| |3.0.4 3.3.3 3.4.0 4.0.0
| |4.1.0
Known to work| |2.95
Last reconfirmed|0000-00-00 00:00:00 |2005-07-05 12:53:10
date| |
Summary|Failure to diagnose |[3.4/4.0/4.1 Regression]
|violation of constraint |Failure to diagnose
|6.516p2 |violation of constraint
| |6.516p2
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22308
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/22308] [3.4/4.0/4.1 Regression] Failure to diagnose violation of constraint 6.516p2
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
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-07-05 15:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jsm28 at gcc dot gnu dot org 2005-07-05 15:19 -------
Testing a patch.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jsm28 at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2005-07-05 12:53:10 |2005-07-05 15:19:51
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22308
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/22308] [3.4/4.0/4.1 Regression] Failure to diagnose violation of constraint 6.516p2
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
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-05 17:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-05 17:34 -------
Subject: Bug 22308
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jsm28@gcc.gnu.org 2005-07-05 17:34:29
Modified files:
gcc : ChangeLog c-decl.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: pr22308-1.c
Log message:
PR c/22308
* c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
testsuite:
* gcc.dg/pr22308-1.c: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9344&r2=2.9345
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&r1=1.673&r2=1.674
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5724&r2=1.5725
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr22308-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22308
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/22308] [3.4/4.0 Regression] Failure to diagnose violation of constraint 6.516p2
2005-07-05 12:06 [Bug c/22308] New: Failure to diagnose violation of constraint 6.516p2 neil at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-07-05 17:35 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-05 21:19 ` 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
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-05 21:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-05 21:19 -------
Subject: Bug 22308
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: jsm28@gcc.gnu.org 2005-07-05 21:19:17
Modified files:
gcc : ChangeLog c-decl.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: pr22308-1.c
Log message:
PR c/22308
* c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
testsuite:
* gcc.dg/pr22308-1.c: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.878&r2=2.2326.2.879
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.470.4.19&r2=1.470.4.20
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.405&r2=1.3389.2.406
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr22308-1.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22308
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/22308] [4.0 Regression] Failure to diagnose violation of constraint 6.516p2
2005-07-05 12:06 [Bug c/22308] New: Failure to diagnose violation of constraint 6.516p2 neil at gcc dot gnu dot org
` (3 preceding siblings ...)
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 ` cvs-commit at gcc dot gnu dot org
2005-07-08 14:46 ` jsm28 at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-08 13:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-08 13:14 -------
Subject: Bug 22308
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: jsm28@gcc.gnu.org 2005-07-08 13:13:52
Modified files:
gcc : ChangeLog c-decl.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: pr22308-1.c
Log message:
PR c/22308
* c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
testsuite:
* gcc.dg/pr22308-1.c: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.298&r2=2.7592.2.299
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.630.6.13&r2=1.630.6.14
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.250&r2=1.5084.2.251
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr22308-1.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.8.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22308
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/22308] [4.0 Regression] Failure to diagnose violation of constraint 6.516p2
2005-07-05 12:06 [Bug c/22308] New: Failure to diagnose violation of constraint 6.516p2 neil at gcc dot gnu dot org
` (4 preceding siblings ...)
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
5 siblings, 0 replies; 7+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-07-08 14:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jsm28 at gcc dot gnu dot org 2005-07-08 14:46 -------
Fixed for 3.4.5, 4.0.2, 4.1.0.
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |16620, 16989
nThis| |
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.2 |3.4.5
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).