From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23939 invoked by alias); 14 Sep 2004 14:51:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 23922 invoked by alias); 14 Sep 2004 14:51:38 -0000 Date: Tue, 14 Sep 2004 14:51:00 -0000 Message-ID: <20040914145138.23921.qmail@sourceware.org> From: "rguenth at tat dot physik dot uni-tuebingen dot de" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030424121601.10479.rguenth@tat.physik.uni-tuebingen.de> References: <20030424121601.10479.rguenth@tat.physik.uni-tuebingen.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/10479] __alignof__(double) not compile time constant inside template class X-Bugzilla-Reason: CC X-SW-Source: 2004-09/txt/msg01546.txt.bz2 List-Id: ------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de 2004-09-14 14:51 ------- Subject: Re: __alignof__(double) not compile time constant inside template class > To solve, this problem, one would have to redesign the name lookup > rules for attributes. Or/and provide an "escaping" mechanism for the > compiler to follow usual language rules. Does this "match" with that it works for non-template classes? I.e. struct foo2 { float bar __attribute__((aligned(__alignof__(double)))); }; just works. Remember that "double" is not a dependent type - I would certainly understand that using a dependent type would not work (or would be harder to do). But not allowing non-dependent types in template classes doesn't look difficult (from a users point of view), are they? Thanks for trying to explain, Richard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10479