public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/9573] typedef with __attribute__ ((mode(....))) doesnt seem to work inside a struct/class
       [not found] <20030204182601.9573.stefaandr@hotmail.com>
@ 2003-08-23  1:45 ` dhazeghi at yahoo dot com
  2003-08-28  6:51 ` stefaandr at hotmail dot com
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-23  1:45 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9573


dhazeghi at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
   Target Milestone|3.4                         |---


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

* [Bug c++/9573] typedef with __attribute__ ((mode(....))) doesnt seem to work inside a struct/class
       [not found] <20030204182601.9573.stefaandr@hotmail.com>
  2003-08-23  1:45 ` [Bug c++/9573] typedef with __attribute__ ((mode(....))) doesnt seem to work inside a struct/class dhazeghi at yahoo dot com
@ 2003-08-28  6:51 ` stefaandr at hotmail dot com
  2003-08-28 13:52 ` bangerth at dealii dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: stefaandr at hotmail dot com @ 2003-08-28  6:51 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9573



------- Additional Comments From stefaandr at hotmail dot com  2003-08-28 06:51 -------
Subject: Re:  typedef with __attribute__ ((mode(....))) doesnt
 seem to work inside a struct/class

Hi!

I'm not really a gcc-wizard.  I suppose you just said that the code for 
this bug isn't even supposed to compile.  Can I ask why?  The typedef 
worked fine when I put it in global scope...

Regards,
Stefaan


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

* [Bug c++/9573] typedef with __attribute__ ((mode(....))) doesnt seem to work inside a struct/class
       [not found] <20030204182601.9573.stefaandr@hotmail.com>
  2003-08-23  1:45 ` [Bug c++/9573] typedef with __attribute__ ((mode(....))) doesnt seem to work inside a struct/class dhazeghi at yahoo dot com
  2003-08-28  6:51 ` stefaandr at hotmail dot com
@ 2003-08-28 13:52 ` bangerth at dealii dot org
  2003-08-28 22:39 ` stefaandr at hotmail dot com
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2003-08-28 13:52 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9573



------- Additional Comments From bangerth at dealii dot org  2003-08-28 13:52 -------
Stefaan, 
the audit trail of this report seems to have dropped a message since I can't figure out 
to which question you were answering. Can you post this question? 
 
If you meant my confirming message from Feb 5th, I was just confirming that the 
bug exists. I think the code should compile. 
 
W.


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

* [Bug c++/9573] typedef with __attribute__ ((mode(....))) doesnt seem to work inside a struct/class
       [not found] <20030204182601.9573.stefaandr@hotmail.com>
                   ` (2 preceding siblings ...)
  2003-08-28 13:52 ` bangerth at dealii dot org
@ 2003-08-28 22:39 ` stefaandr at hotmail dot com
  2003-08-29 14:30 ` bangerth at dealii dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: stefaandr at hotmail dot com @ 2003-08-28 22:39 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9573



------- Additional Comments From stefaandr at hotmail dot com  2003-08-28 22:39 -------
Subject: Re:  typedef with __attribute__ ((mode(....))) doesnt
 seem to work inside a struct/class

I was replying to (got this less than 3 days ago):

dhazeghi at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
   Target Milestone|3.4                         |---

Maybe I misinterpret the "wrong-code" flag somehow?

Regards,
Stefaan


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

* [Bug c++/9573] typedef with __attribute__ ((mode(....))) doesnt seem to work inside a struct/class
       [not found] <20030204182601.9573.stefaandr@hotmail.com>
                   ` (3 preceding siblings ...)
  2003-08-28 22:39 ` stefaandr at hotmail dot com
@ 2003-08-29 14:30 ` bangerth at dealii dot org
  2004-07-11 12:29 ` jens dot maurer at gmx dot net
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2003-08-29 14:30 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9573


bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|wrong-code                  |


------- Additional Comments From bangerth at dealii dot org  2003-08-29 14:30 -------
wrong-code means that gcc is generating incorrect assembler code for valid input. This 
is certainly not the case here, since it doesn't generate any code at all. I've removed 
the flag again. 
 
W.


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

* [Bug c++/9573] typedef with __attribute__ ((mode(....))) doesnt seem to work inside a struct/class
       [not found] <20030204182601.9573.stefaandr@hotmail.com>
                   ` (4 preceding siblings ...)
  2003-08-29 14:30 ` bangerth at dealii dot org
@ 2004-07-11 12:29 ` jens dot maurer at gmx dot net
  2005-01-09  2:31 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: jens dot maurer at gmx dot net @ 2004-07-11 12:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jens dot maurer at gmx dot net  2004-07-11 12:29 -------
I would like to point out that the bug still exists in gcc 3.4.0 release and
3.5.  Here's another testcase:

struct A
{
  typedef int v2si __attribute__((mode(V2SI)));
  static void f(v2si& v) {
    v2si a;
    v = a;
  }
};

typedef int v2si __attribute__((mode(V2SI)));
int main()
{
  v2si x;
  A::f(x);
}

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9573


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

* [Bug c++/9573] typedef with __attribute__ ((mode(....))) doesnt seem to work inside a struct/class
       [not found] <20030204182601.9573.stefaandr@hotmail.com>
                   ` (5 preceding siblings ...)
  2004-07-11 12:29 ` jens dot maurer at gmx dot net
@ 2005-01-09  2:31 ` pinskia at gcc dot gnu dot org
  2005-01-12 15:27 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-09  2:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-09 02:31 -------
Fixed at least on the mainline.
: Search converges between 2004-10-18-161001-trunk (#597) and 2004-10-19-014001-trunk 
(#598).
: Search converges between 2004-10-17-014001-trunk (#594) and 2004-10-17-161001-trunk 
(#595).

Fixed by:
2004-10-17  Giovanni Bajo  <giovannibajo@gcc.gnu.org>

        PR c++/17743
        * decl2.c (grokfield): Apply attributes also to TYPE_DECLs.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9573


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

* [Bug c++/9573] typedef with __attribute__ ((mode(....))) doesnt seem to work inside a struct/class
       [not found] <20030204182601.9573.stefaandr@hotmail.com>
                   ` (6 preceding siblings ...)
  2005-01-09  2:31 ` pinskia at gcc dot gnu dot org
@ 2005-01-12 15:27 ` pinskia at gcc dot gnu dot org
  2005-01-12 21:08 ` leblanc at skycomputers dot com
  2005-01-12 21:13 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-12 15:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-12 15:27 -------
*** Bug 19400 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |leblanc at skycomputers dot
                   |                            |com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9573


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

* [Bug c++/9573] typedef with __attribute__ ((mode(....))) doesnt seem to work inside a struct/class
       [not found] <20030204182601.9573.stefaandr@hotmail.com>
                   ` (7 preceding siblings ...)
  2005-01-12 15:27 ` pinskia at gcc dot gnu dot org
@ 2005-01-12 21:08 ` leblanc at skycomputers dot com
  2005-01-12 21:13 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 10+ messages in thread
From: leblanc at skycomputers dot com @ 2005-01-12 21:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From leblanc at skycomputers dot com  2005-01-12 21:08 -------
The bug I reported in #19400, duplicating this one, is fixed in the compiler as of 1/12/04.  However, 
this variant remains busted:

     1  #include <stdio.h>
     2  #include <altivec.h>
     3
     4  template < typename Val > struct S {
     5      typedef vector Val vector_type;
     6      void pr_size() { printf ("size = %d\n", sizeof(vector_type)); }
     7      };  
     8
     9  int main()
    10  {
    11    printf ("size = %d\n", sizeof(S < float >::vector_type));
    12    S<float> x;
    13    x.pr_size();
    14    return 0;
    15  }

because it prints

    size = 4
    size = 4


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9573


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

* [Bug c++/9573] typedef with __attribute__ ((mode(....))) doesnt seem to work inside a struct/class
       [not found] <20030204182601.9573.stefaandr@hotmail.com>
                   ` (8 preceding siblings ...)
  2005-01-12 21:08 ` leblanc at skycomputers dot com
@ 2005-01-12 21:13 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-12 21:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-12 21:13 -------
(In reply to comment #9)
I think that part is more related to PR 17743.  Can you file a new bug, templates are much harder to get 
working with attributes.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9573


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

end of thread, other threads:[~2005-01-12 21:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20030204182601.9573.stefaandr@hotmail.com>
2003-08-23  1:45 ` [Bug c++/9573] typedef with __attribute__ ((mode(....))) doesnt seem to work inside a struct/class dhazeghi at yahoo dot com
2003-08-28  6:51 ` stefaandr at hotmail dot com
2003-08-28 13:52 ` bangerth at dealii dot org
2003-08-28 22:39 ` stefaandr at hotmail dot com
2003-08-29 14:30 ` bangerth at dealii dot org
2004-07-11 12:29 ` jens dot maurer at gmx dot net
2005-01-09  2:31 ` pinskia at gcc dot gnu dot org
2005-01-12 15:27 ` pinskia at gcc dot gnu dot org
2005-01-12 21:08 ` leblanc at skycomputers dot com
2005-01-12 21:13 ` pinskia at gcc dot gnu dot org

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