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 giovannibajo at libero dot it  2004-10-17 04:47 -------
OK, I fixed part of this for 4.0. The missing part is when the expression in 
attributes is dependent, like:

template <class T>
struct A {
    char foo __attribute__((aligned(__alignof__(T))));
};

This is non-trivial to fix. Benjamin, if you want you can keep this bugreport 
open to track this. I do not plan to be able to fix this in the 4.0 timeframe, 
so I have unassigned the bug (I will attempt something though). If somebody 
more expert than me wants to help the v3 guys, feel free.

Otherwise, if you do not care about this, just close this bug.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|giovannibajo at libero dot  |unassigned at gcc dot gnu
                   |it                          |dot org
             Status|ASSIGNED                    |NEW
            Summary|__alignof__ vs. typedefs    |dependent expressions in
                   |                            |attributes


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]