public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7586: Incorrect handling of attributes in template codes
@ 2002-08-13  9:46 gdr
  0 siblings, 0 replies; 2+ messages in thread
From: gdr @ 2002-08-13  9:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7586
>Category:       c++
>Synopsis:       Incorrect handling of attributes in template codes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 13 09:36:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Gabriel Dos Reis <gdr@nerim.net>
>Release:        unknown-1.0
>Organization:
>Environment:
Plateform independent
>Description:
cc1plus is trying to evaluate attributes in template
code whereas the necessary information are not present
until instantiation time.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="aligned-attribute.C"
Content-Disposition: inline; filename="aligned-attribute.C"

#include <assert.h>

template<typename T>
int f()
{
    typedef unsigned char type[sizeof (T)]
        __attribute__((__aligned__(__alignof__(T))));

    return __alignof__ (type);
}

int main()
{
    assert(f<int>() == __alignof__(int));
}


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c++/7586: Incorrect handling of attributes in template codes
@ 2002-10-30 16:29 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2002-10-30 16:29 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, gdr, nobody

Synopsis: Incorrect handling of attributes in template codes

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Oct 30 16:28:59 2002
State-Changed-Why:
    Confirmed

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7586


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-31  0:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-13  9:46 c++/7586: Incorrect handling of attributes in template codes gdr
2002-10-30 16:29 bangerth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).