This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17743] dependent expressions in attributes
- From: "bkoz at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Oct 2004 05:23:46 -0000
- Subject: [Bug c++/17743] dependent expressions in attributes
- References: <20040930042632.17743.bkoz@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bkoz at redhat dot com 2004-10-18 05:23 -------
Subject: Re: dependent expressions in attributes
>Is this a showstopper for tr1 work?
Not that I can see. From what I can tell, tr1::array is going to require
default-constructable types.
I think the library hackers are interested in this kind of stuff for our
own selfish reasons.
I guess I don't see why/how alignof should be different than sizeof
here (which works):
template <class T>
struct A
{
char foo[sizeof(T)];
};
-benjamin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17743