public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/33840] New: bit-field size accepted for struct @ 2007-10-20 21:57 reichelt at gcc dot gnu dot org 2007-11-19 5:46 ` [Bug c++/33840] " pinskia at gcc dot gnu dot org 0 siblings, 1 reply; 7+ messages in thread From: reichelt at gcc dot gnu dot org @ 2007-10-20 21:57 UTC (permalink / raw) To: gcc-bugs The following invalid code snippet is accepted since at least GCC 2.95.3: =============================== template<int> struct A { struct {} : 2; }; =============================== -- Summary: bit-field size accepted for struct Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: accepts-invalid, 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=33840 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/33840] bit-field size accepted for struct 2007-10-20 21:57 [Bug c++/33840] New: bit-field size accepted for struct reichelt at gcc dot gnu dot org @ 2007-11-19 5:46 ` pinskia at gcc dot gnu dot org 0 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2007-11-19 5:46 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from pinskia at gcc dot gnu dot org 2007-11-19 05:46 ------- Confirmed. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2007-11-19 05:46:02 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33840 ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <bug-33840-4@http.gcc.gnu.org/bugzilla/>]
* [Bug c++/33840] bit-field size accepted for struct [not found] <bug-33840-4@http.gcc.gnu.org/bugzilla/> @ 2011-06-04 9:05 ` reichelt at gcc dot gnu.org 2011-06-04 13:02 ` redi at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 7+ messages in thread From: reichelt at gcc dot gnu.org @ 2011-06-04 9:05 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33840 Volker Reichelt <reichelt at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.6.0 --- Comment #2 from Volker Reichelt <reichelt at gcc dot gnu.org> 2011-06-04 09:05:30 UTC --- This is fixed since GCC 4.6.0, but we should add a testcase before closing the problem report. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/33840] bit-field size accepted for struct [not found] <bug-33840-4@http.gcc.gnu.org/bugzilla/> 2011-06-04 9:05 ` reichelt at gcc dot gnu.org @ 2011-06-04 13:02 ` redi at gcc dot gnu.org 2011-06-04 16:12 ` redi at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 7+ messages in thread From: redi at gcc dot gnu.org @ 2011-06-04 13:02 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33840 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch Known to work| |4.6.0, 4.7.0 --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-06-04 13:01:30 UTC --- patch posted to http://gcc.gnu.org/ml/gcc-patches/2011-06/msg00305.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/33840] bit-field size accepted for struct [not found] <bug-33840-4@http.gcc.gnu.org/bugzilla/> 2011-06-04 9:05 ` reichelt at gcc dot gnu.org 2011-06-04 13:02 ` redi at gcc dot gnu.org @ 2011-06-04 16:12 ` redi at gcc dot gnu.org 2011-06-04 16:21 ` redi at gcc dot gnu.org 2011-06-04 16:23 ` redi at gcc dot gnu.org 4 siblings, 0 replies; 7+ messages in thread From: redi at gcc dot gnu.org @ 2011-06-04 16:12 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33840 --- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-06-04 16:11:47 UTC --- Author: redi Date: Sat Jun 4 16:11:41 2011 New Revision: 174642 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174642 Log: 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com> PR c++/33840 * g++.dg/diagnostic/bitfld2.C: New. Added: trunk/gcc/testsuite/g++.dg/diagnostic/bitfld2.C Modified: trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/33840] bit-field size accepted for struct [not found] <bug-33840-4@http.gcc.gnu.org/bugzilla/> ` (2 preceding siblings ...) 2011-06-04 16:12 ` redi at gcc dot gnu.org @ 2011-06-04 16:21 ` redi at gcc dot gnu.org 2011-06-04 16:23 ` redi at gcc dot gnu.org 4 siblings, 0 replies; 7+ messages in thread From: redi at gcc dot gnu.org @ 2011-06-04 16:21 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33840 --- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-06-04 16:21:00 UTC --- Author: redi Date: Sat Jun 4 16:20:55 2011 New Revision: 174645 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174645 Log: 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com> PR c++/33840 * g++.dg/diagnostic/bitfld2.C: New. Added: branches/gcc-4_6-branch/gcc/testsuite/g++.dg/diagnostic/bitfld2.C Modified: branches/gcc-4_6-branch/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/33840] bit-field size accepted for struct [not found] <bug-33840-4@http.gcc.gnu.org/bugzilla/> ` (3 preceding siblings ...) 2011-06-04 16:21 ` redi at gcc dot gnu.org @ 2011-06-04 16:23 ` redi at gcc dot gnu.org 4 siblings, 0 replies; 7+ messages in thread From: redi at gcc dot gnu.org @ 2011-06-04 16:23 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33840 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-06-04 16:22:20 UTC --- Thanks, Volker, tests added so closing ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-06-04 16:23 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2007-10-20 21:57 [Bug c++/33840] New: bit-field size accepted for struct reichelt at gcc dot gnu dot org 2007-11-19 5:46 ` [Bug c++/33840] " pinskia at gcc dot gnu dot org [not found] <bug-33840-4@http.gcc.gnu.org/bugzilla/> 2011-06-04 9:05 ` reichelt at gcc dot gnu.org 2011-06-04 13:02 ` redi at gcc dot gnu.org 2011-06-04 16:12 ` redi at gcc dot gnu.org 2011-06-04 16:21 ` redi at gcc dot gnu.org 2011-06-04 16:23 ` redi at gcc dot gnu.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).