public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16337] New: bug defining multiple altivec vectors in same C++ statement
@ 2004-07-02 21:17 janis187 at us dot ibm dot com
  2004-07-02 21:31 ` [Bug c++/16337] [3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: janis187 at us dot ibm dot com @ 2004-07-02 21:17 UTC (permalink / raw)
  To: gcc-bugs

When multiple vector variables are defined in the same C++ statement
the compiler doesn't recognize the ones after the first as vectors.
This test case, extracted from g++.dg/ext/altivec-3.C, fails with g++
built from 20040630 sources; I don't currently have a newer compiler to
test with.  The original test has been failing for awhile because of
other problems with variable argument lists, so this problem might not
have been noticed by anyone yet.
                                                                               
                
Test case:
                                                                               
                
#include <altivec.h>
                                                                               
                
vector signed int foo (void)
{
    vector signed int v1 = { 1, 2, 3, 4 };
    vector signed int v2, v3;
    vector signed int v4;
    v2 = v1;
    v3 = v1;
    v4 = v1;
}
                                                                               
                
ouput:
                                                                               
                
madcow% $GXX -c -maltivec bug.C
bug.C: In function `int __vector__ foo()':
bug.C:9: error: cannot convert `int __vector__' to `int' in assignment
                                                                               
                
This is using a biarch powerpc64-linux GCC.  I think this is a recent
regression on mainline.

-- 
           Summary: bug defining multiple altivec vectors in same C++
                    statement
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janis187 at us dot ibm dot com
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc-linux


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


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

* [Bug c++/16337] [3.5 Regression] bug defining multiple altivec vectors in same C++ statement
  2004-07-02 21:17 [Bug c++/16337] New: bug defining multiple altivec vectors in same C++ statement janis187 at us dot ibm dot com
@ 2004-07-02 21:31 ` pinskia at gcc dot gnu dot org
  2004-07-13 15:17 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-02 21:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-02 21:31 -------
Confirmed, here is the generic example:
#define vector __attribute__((vector_size(16)))
vector signed int foo (void)
{
    vector signed int v1 = { 1, 2, 3, 4 };
    vector signed int v2, v3;
    vector signed int v4;
    v2 = v1;
    v3 = v1;
    v4 = v1;
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
      Known to fail|                            |3.5.0
      Known to work|                            |3.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-07-02 21:31:27
               date|                            |
            Summary|bug defining multiple       |[3.5 Regression] bug
                   |altivec vectors in same C++ |defining multiple altivec
                   |statement                   |vectors in same C++
                   |                            |statement
   Target Milestone|---                         |3.5.0


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


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

* [Bug c++/16337] [3.5 Regression] bug defining multiple altivec vectors in same C++ statement
  2004-07-02 21:17 [Bug c++/16337] New: bug defining multiple altivec vectors in same C++ statement janis187 at us dot ibm dot com
  2004-07-02 21:31 ` [Bug c++/16337] [3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-07-13 15:17 ` pinskia at gcc dot gnu dot org
  2004-07-13 21:12 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-13 15:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-13 15:17 -------
>From Phil's regression hunter: Search converges between 2004-06-24-trunk (#471) and 2004-06-26-
trunk (#472).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org


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


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

* [Bug c++/16337] [3.5 Regression] bug defining multiple altivec vectors in same C++ statement
  2004-07-02 21:17 [Bug c++/16337] New: bug defining multiple altivec vectors in same C++ statement janis187 at us dot ibm dot com
  2004-07-02 21:31 ` [Bug c++/16337] [3.5 Regression] " pinskia at gcc dot gnu dot org
  2004-07-13 15:17 ` pinskia at gcc dot gnu dot org
@ 2004-07-13 21:12 ` cvs-commit at gcc dot gnu dot org
  2004-07-13 21:13 ` mmitchel at gcc dot gnu dot org
  2004-07-17 18:06 ` cvs-commit at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-07-13 21:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-07-13 21:11 -------
Subject: Bug 16337

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2004-07-13 21:11:53

Modified files:
	gcc/cp         : ChangeLog decl.c decl.h parser.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/parse: mutable1.C 

Log message:
	PR c++/16518
	PR c++/16337
	* decl.c (grokvardecl): Make declspecs parameter const.
	(grokdeclarator): Likewise.  Adjust accordingly.
	* decl.h (grokdeclarator): Adjust declaration.
	* parser.c (cp_parser_init_declarator): Do not clear
	decl_specifiers->attributes.
	
	PR c++/16518
	* g++.dg/parse/mutable1.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4197&r2=1.4198
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1247&r2=1.1248
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.h.diff?cvsroot=gcc&r1=1.15&r2=1.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.227&r2=1.228
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3997&r2=1.3998
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/mutable1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c++/16337] [3.5 Regression] bug defining multiple altivec vectors in same C++ statement
  2004-07-02 21:17 [Bug c++/16337] New: bug defining multiple altivec vectors in same C++ statement janis187 at us dot ibm dot com
                   ` (2 preceding siblings ...)
  2004-07-13 21:12 ` cvs-commit at gcc dot gnu dot org
@ 2004-07-13 21:13 ` mmitchel at gcc dot gnu dot org
  2004-07-17 18:06 ` cvs-commit at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-07-13 21:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-07-13 21:13 -------
Fixed in GCC 3.5.0.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug c++/16337] [3.5 Regression] bug defining multiple altivec vectors in same C++ statement
  2004-07-02 21:17 [Bug c++/16337] New: bug defining multiple altivec vectors in same C++ statement janis187 at us dot ibm dot com
                   ` (3 preceding siblings ...)
  2004-07-13 21:13 ` mmitchel at gcc dot gnu dot org
@ 2004-07-17 18:06 ` cvs-commit at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-07-17 18:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-07-17 18:06 -------
Subject: Bug 16337

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2004-07-17 18:06:28

Modified files:
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/parse: attr2.C 

Log message:
	PR c++/16337
	* g++.dg/parse/attr2.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4013&r2=1.4014
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/attr2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

end of thread, other threads:[~2004-07-17 18:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-02 21:17 [Bug c++/16337] New: bug defining multiple altivec vectors in same C++ statement janis187 at us dot ibm dot com
2004-07-02 21:31 ` [Bug c++/16337] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-07-13 15:17 ` pinskia at gcc dot gnu dot org
2004-07-13 21:12 ` cvs-commit at gcc dot gnu dot org
2004-07-13 21:13 ` mmitchel at gcc dot gnu dot org
2004-07-17 18:06 ` cvs-commit 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).