public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11094] incomplete static member breaks sizeof containing template class
[not found] <bug-11094-2586@http.gcc.gnu.org/bugzilla/>
@ 2009-03-03 21:39 ` jason at gcc dot gnu dot org
2009-03-03 22:08 ` jason at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-03-03 21:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jason at gcc dot gnu dot org 2009-03-03 21:39 -------
This is core issue 408, which I'm supposed to be drafting.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11094
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/11094] incomplete static member breaks sizeof containing template class
[not found] <bug-11094-2586@http.gcc.gnu.org/bugzilla/>
2009-03-03 21:39 ` [Bug c++/11094] incomplete static member breaks sizeof containing template class jason at gcc dot gnu dot org
@ 2009-03-03 22:08 ` jason at gcc dot gnu dot org
2010-01-27 21:07 ` [Bug c++/11094] [DR408] " jason at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-03-03 22:08 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|SUSPENDED |ASSIGNED
Last reconfirmed|2005-12-11 23:09:54 |2009-03-03 22:08:40
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11094
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/11094] [DR408] incomplete static member breaks sizeof containing template class
[not found] <bug-11094-2586@http.gcc.gnu.org/bugzilla/>
2009-03-03 21:39 ` [Bug c++/11094] incomplete static member breaks sizeof containing template class jason at gcc dot gnu dot org
2009-03-03 22:08 ` jason at gcc dot gnu dot org
@ 2010-01-27 21:07 ` jason at gcc dot gnu dot org
2010-04-07 15:56 ` jason at gcc dot gnu dot org
2010-05-04 4:55 ` jason at gcc dot gnu dot org
4 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-01-27 21:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jason at gcc dot gnu dot org 2010-01-27 21:07 -------
Created an attachment (id=19732)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19732&action=view)
patch
Here's the patch I'll be putting into 4.6 that implements my proposed
resolution to issue 408.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11094
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/11094] [DR408] incomplete static member breaks sizeof containing template class
[not found] <bug-11094-2586@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2010-01-27 21:07 ` [Bug c++/11094] [DR408] " jason at gcc dot gnu dot org
@ 2010-04-07 15:56 ` jason at gcc dot gnu dot org
2010-05-04 4:55 ` jason at gcc dot gnu dot org
4 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-04-07 15:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jason at gcc dot gnu dot org 2010-04-07 15:56 -------
Subject: Bug 11094
Author: jason
Date: Wed Apr 7 15:55:20 2010
New Revision: 158075
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158075
Log:
PR c++/11094, DR 408
* cp-tree.h (VAR_HAD_UNKNOWN_BOUND, SET_VAR_HAD_UNKNOWN_BOUND): New.
* decl2.c (finish_static_data_member_decl): Set it.
* decl.c (duplicate_decls): Propagate it.
* pt.c (tsubst_decl): Don't substitute the domain of an array
VAR_DECL if it's set.
(regenerate_decl_from_template): Substitute it here.
(type_dependent_expression_p): Return true if it's set.
* semantics.c (finish_decltype_type): Instantiate such a variable.
* typeck.c (cxx_sizeof_expr): Likewise.
(strip_array_domain): New.
Added:
trunk/gcc/testsuite/g++.dg/template/dr408.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/decl2.c
trunk/gcc/cp/pt.c
trunk/gcc/cp/semantics.c
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11094
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/11094] [DR408] incomplete static member breaks sizeof containing template class
[not found] <bug-11094-2586@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2010-04-07 15:56 ` jason at gcc dot gnu dot org
@ 2010-05-04 4:55 ` jason at gcc dot gnu dot org
4 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-05-04 4:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jason at gcc dot gnu dot org 2010-05-04 04:55 -------
Fixed for 4.6.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11094
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/11094] incomplete static member breaks sizeof containing template class
2003-06-04 20:35 [Bug c++/11094] New: " ncm@cantrip.org
` (4 preceding siblings ...)
2003-08-04 0:30 ` pinskia at physics dot uc dot edu
@ 2004-04-27 2:46 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-27 2:46 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Last reconfirmed|2004-02-08 05:22:41 |2004-04-27 01:22:57
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11094
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/11094] incomplete static member breaks sizeof containing template class
2003-06-04 20:35 [Bug c++/11094] New: " ncm@cantrip.org
` (3 preceding siblings ...)
2003-06-10 10:44 ` giovannibajo@libero.it
@ 2003-08-04 0:30 ` pinskia at physics dot uc dot edu
2004-04-27 2:46 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 11+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-04 0:30 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11094
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4 |---
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/11094] incomplete static member breaks sizeof containing template class
2003-06-04 20:35 [Bug c++/11094] New: " ncm@cantrip.org
` (2 preceding siblings ...)
2003-06-10 10:43 ` giovannibajo@libero.it
@ 2003-06-10 10:44 ` giovannibajo@libero.it
2003-08-04 0:30 ` pinskia at physics dot uc dot edu
2004-04-27 2:46 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 11+ messages in thread
From: giovannibajo@libero.it @ 2003-06-10 10:44 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11094
giovannibajo@libero.it changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |SUSPENDED
------- Additional Comments From giovannibajo@libero.it 2003-06-10 10:44 -------
This will stay suspended until the core working group comes to an agreement.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/11094] incomplete static member breaks sizeof containing template class
2003-06-04 20:35 [Bug c++/11094] New: " ncm@cantrip.org
2003-06-04 23:42 ` [Bug c++/11094] " bangerth@dealii.org
2003-06-05 20:10 ` ncm@cantrip.org
@ 2003-06-10 10:43 ` giovannibajo@libero.it
2003-06-10 10:44 ` giovannibajo@libero.it
` (2 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: giovannibajo@libero.it @ 2003-06-10 10:43 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11094
giovannibajo@libero.it changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-06-10 10:43:40
date| |
------- Additional Comments From giovannibajo@libero.it 2003-06-10 10:43 -------
-> suspended
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/11094] incomplete static member breaks sizeof containing template class
2003-06-04 20:35 [Bug c++/11094] New: " ncm@cantrip.org
2003-06-04 23:42 ` [Bug c++/11094] " bangerth@dealii.org
@ 2003-06-05 20:10 ` ncm@cantrip.org
2003-06-10 10:43 ` giovannibajo@libero.it
` (3 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: ncm@cantrip.org @ 2003-06-05 20:10 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11094
------- Additional Comments From ncm@cantrip.org 2003-06-05 20:10 -------
This was discussed on the ISO C++ core issues list
in messages 9868, 9869, and 9870.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/11094] incomplete static member breaks sizeof containing template class
2003-06-04 20:35 [Bug c++/11094] New: " ncm@cantrip.org
@ 2003-06-04 23:42 ` bangerth@dealii.org
2003-06-05 20:10 ` ncm@cantrip.org
` (4 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: bangerth@dealii.org @ 2003-06-04 23:42 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11094
------- Additional Comments From bangerth@dealii.org 2003-06-04 23:42 -------
See this thread
http://gcc.gnu.org/ml/gcc/2003-06/msg00386.htmlfor some clues about the
validity of the code. FWIW,
icc accepts the code.
W.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2010-05-04 4:55 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-11094-2586@http.gcc.gnu.org/bugzilla/>
2009-03-03 21:39 ` [Bug c++/11094] incomplete static member breaks sizeof containing template class jason at gcc dot gnu dot org
2009-03-03 22:08 ` jason at gcc dot gnu dot org
2010-01-27 21:07 ` [Bug c++/11094] [DR408] " jason at gcc dot gnu dot org
2010-04-07 15:56 ` jason at gcc dot gnu dot org
2010-05-04 4:55 ` jason at gcc dot gnu dot org
2003-06-04 20:35 [Bug c++/11094] New: " ncm@cantrip.org
2003-06-04 23:42 ` [Bug c++/11094] " bangerth@dealii.org
2003-06-05 20:10 ` ncm@cantrip.org
2003-06-10 10:43 ` giovannibajo@libero.it
2003-06-10 10:44 ` giovannibajo@libero.it
2003-08-04 0:30 ` pinskia at physics dot uc dot edu
2004-04-27 2:46 ` pinskia 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).