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; 5+ 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] 5+ 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; 5+ 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] 5+ 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; 5+ 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] 5+ 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; 5+ 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] 5+ 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; 5+ 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] 5+ messages in thread

end of thread, other threads:[~2010-05-04  4:55 UTC | newest]

Thread overview: 5+ 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

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).