This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17743] dependent expressions in attributes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]