Bug 7524 - [Regression from GCC 2.95.3] f(const float arg[3]) fails
Summary: [Regression from GCC 2.95.3] f(const float arg[3]) fails
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.1.1
: P3 normal
Target Milestone: ---
Assignee: Mark Mitchell
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2002-08-07 08:46 UTC by braden
Modified: 2003-07-25 17:33 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
test.cc (424 bytes, application/octet-stream)
2003-05-21 15:16 UTC, braden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description braden 2002-08-07 08:46:02 UTC
In the attached demonstration case, g++ is having problems with function argument declarations of the form

  f(const float arg[3]);

Peculiarly, g++ is able to compile the code if the "assign" method in the example is removed.

Release:
3.1.1

How-To-Repeat:
See attached test case.
Comment 2 Nathan Sidwell 2002-09-13 16:18:08 UTC
State-Changed-From-To: open->analyzed
State-Changed-Why: confirmed
Comment 3 Mark Mitchell 2002-10-16 10:44:26 UTC
Responsible-Changed-From-To: unassigned->mmitchel
Responsible-Changed-Why: Working on a fix.
Comment 4 Mark Mitchell 2002-10-16 12:12:06 UTC
State-Changed-From-To: analyzed->closed
State-Changed-Why: Fixed in GCC 3.2.1.
Comment 5 Mark Mitchell 2002-10-16 18:53:30 UTC
From: mmitchel@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: c++/7524
Date: 16 Oct 2002 18:53:30 -0000

 CVSROOT:	/cvs/gcc
 Module name:	gcc
 Branch: 	gcc-3_2-branch
 Changes by:	mmitchel@gcc.gnu.org	2002-10-16 11:53:29
 
 Modified files:
 	gcc/cp         : ChangeLog method.c 
 	gcc/testsuite  : ChangeLog 
 Added files:
 	gcc/testsuite/g++.dg/init: array7.C 
 
 Log message:
 	PR c++/7524
 	* method.c (do_build_assign_ref): Use cp_build_qualified_type, not
 	build_qualified_type.
 	
 	PR c++/7524
 	* g++.dg/init/array7.C: New test.
 
 Patches:
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.2685.2.114.2.20&r2=1.2685.2.114.2.21
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/method.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.219.2.4&r2=1.219.2.4.4.1
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.1672.2.166.2.28&r2=1.1672.2.166.2.29
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/array7.C.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=NONE&r2=1.1.2.1
 

Comment 6 Mark Mitchell 2002-10-16 18:53:30 UTC
From: mmitchel@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: c++/7524
Date: 16 Oct 2002 18:53:30 -0000

 CVSROOT:	/cvs/gcc
 Module name:	gcc
 Branch: 	gcc-3_2-branch
 Changes by:	mmitchel@gcc.gnu.org	2002-10-16 11:53:29
 
 Modified files:
 	gcc/cp         : ChangeLog method.c 
 	gcc/testsuite  : ChangeLog 
 Added files:
 	gcc/testsuite/g++.dg/init: array7.C 
 
 Log message:
 	PR c++/7524
 	* method.c (do_build_assign_ref): Use cp_build_qualified_type, not
 	build_qualified_type.
 	
 	PR c++/7524
 	* g++.dg/init/array7.C: New test.
 
 Patches:
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.2685.2.114.2.20&r2=1.2685.2.114.2.21
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/method.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.219.2.4&r2=1.219.2.4.4.1
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.1672.2.166.2.28&r2=1.1672.2.166.2.29
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/array7.C.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=NONE&r2=1.1.2.1
 

Comment 7 Mark Mitchell 2002-10-16 18:58:40 UTC
From: mmitchel@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: c++/7524
Date: 16 Oct 2002 18:58:40 -0000

 CVSROOT:	/cvs/gcc
 Module name:	gcc
 Changes by:	mmitchel@gcc.gnu.org	2002-10-16 11:58:39
 
 Modified files:
 	gcc/cp         : ChangeLog method.c 
 	gcc/testsuite  : ChangeLog 
 Added files:
 	gcc/testsuite/g++.dg/init: array7.C 
 
 Log message:
 	PR c++/7524
 	* g++.dg/init/array7.C: New test.
 	
 	PR c++/7524
 	* method.c (do_build_assign_ref): Use cp_build_qualified_type, not
 	build_qualified_type.
 
 Patches:
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3002&r2=1.3003
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/method.c.diff?cvsroot=gcc&r1=1.232&r2=1.233
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.2145&r2=1.2146
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/array7.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
 

Comment 8 Mark Mitchell 2002-10-16 18:58:40 UTC
From: mmitchel@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: c++/7524
Date: 16 Oct 2002 18:58:40 -0000

 CVSROOT:	/cvs/gcc
 Module name:	gcc
 Changes by:	mmitchel@gcc.gnu.org	2002-10-16 11:58:39
 
 Modified files:
 	gcc/cp         : ChangeLog method.c 
 	gcc/testsuite  : ChangeLog 
 Added files:
 	gcc/testsuite/g++.dg/init: array7.C 
 
 Log message:
 	PR c++/7524
 	* g++.dg/init/array7.C: New test.
 	
 	PR c++/7524
 	* method.c (do_build_assign_ref): Use cp_build_qualified_type, not
 	build_qualified_type.
 
 Patches:
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3002&r2=1.3003
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/method.c.diff?cvsroot=gcc&r1=1.232&r2=1.233
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.2145&r2=1.2146
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/array7.C.diff?cvsroot=gcc&r1=1.1&r2=1.2