From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20153 invoked by alias); 20 Jul 2002 18:46:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 20114 invoked by uid 71); 20 Jul 2002 18:46:01 -0000 Resent-Date: 20 Jul 2002 18:46:01 -0000 Resent-Message-ID: <20020720184601.20113.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, gdr@nerim.net Received: (qmail 14661 invoked by uid 61); 20 Jul 2002 17:16:50 -0000 Message-Id: <20020720171650.14660.qmail@sources.redhat.com> Date: Sat, 20 Jul 2002 11:46:00 -0000 From: gdr@nerim.net Reply-To: gdr@nerim.net To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/7363: bogus __alignof__ implementation X-SW-Source: 2002-07/txt/msg00583.txt.bz2 List-Id: >Number: 7363 >Category: c++ >Synopsis: bogus __alignof__ implementation >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sat Jul 20 11:46:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Gabriel Dos Reis >Release: all GCC-3.x series. >Organization: >Environment: Plateform independent >Description: __alignof__ fails to (implictly) instantiate a specialization where appropriate before computing the desired value. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="alignof.C" Content-Disposition: inline; filename="alignof.C" template int my_alignof() { return __alignof__(T); } template struct X { }; int main() { return my_alignof >(); }