public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43116] New: ICE when using attributes in a function alias declaration
@ 2010-02-18 23:21 bruno at clisp dot org
2010-02-18 23:22 ` [Bug c++/43116] " bruno at clisp dot org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: bruno at clisp dot org @ 2010-02-18 23:21 UTC (permalink / raw)
To: gcc-bugs
$ g++ -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.4.2/configure --build=i686-pc-linux-gnu
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu
--prefix=/arch/x86-linux/gnu-inst-gcc/4.4.2 --enable-shared
--enable-version-specific-runtime-libs --enable-nls --enable-threads=posix
--enable-__cxa_atexit --with-as=/arch/x86-linux/gnu/bin/as32
--with-gmp=/arch/x86-linux/gnu-inst-gcc/4.4.2
--with-mpfr=/arch/x86-linux/gnu-inst-gcc/4.4.2
--with-ecj-jar=/gfs/petix/Volumes/ExtData/source/gnu/gcc/sourceware.org-ecj/ecj-latest.jar
Thread model: posix
gcc version 4.4.2 (GCC)
$ g++ -S bug.cc
bug.cc:5: internal compiler error: in start_decl, at cp/decl.c:4231
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Here is the contents of bug.cc (also attached):
============================= bug.cc =============================
extern "C" int rpl_open (const char *filename, int flags, ...) __attribute__
((__nonnull__ (1)));
namespace gnulib
{
int (*const open) (const char *filename, int flags, ...) __attribute__
((__nonnull__ (1))) = rpl_open;
}
==================================================================
--
Summary: ICE when using attributes in a function alias
declaration
Product: gcc
Version: 4.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bruno at clisp dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43116
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/43116] ICE when using attributes in a function alias declaration
2010-02-18 23:21 [Bug c++/43116] New: ICE when using attributes in a function alias declaration bruno at clisp dot org
@ 2010-02-18 23:22 ` bruno at clisp dot org
2010-02-18 23:26 ` [Bug c++/43116] [4.3/4.4/4.5 Regression] " pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bruno at clisp dot org @ 2010-02-18 23:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from bruno at clisp dot org 2010-02-18 23:21 -------
Created an attachment (id=19918)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19918&action=view)
test case
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43116
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/43116] [4.3/4.4/4.5 Regression] ICE when using attributes in a function alias declaration
2010-02-18 23:21 [Bug c++/43116] New: ICE when using attributes in a function alias declaration bruno at clisp dot org
2010-02-18 23:22 ` [Bug c++/43116] " bruno at clisp dot org
@ 2010-02-18 23:26 ` pinskia at gcc dot gnu dot org
2010-03-01 11:50 ` rguenth at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-02-18 23:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2010-02-18 23:25 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2010-02-18 23:25:51
date| |
Summary|ICE when using attributes in|[4.3/4.4/4.5 Regression] ICE
|a function alias declaration|when using attributes in a
| |function alias declaration
Target Milestone|--- |4.3.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43116
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/43116] [4.3/4.4/4.5 Regression] ICE when using attributes in a function alias declaration
2010-02-18 23:21 [Bug c++/43116] New: ICE when using attributes in a function alias declaration bruno at clisp dot org
2010-02-18 23:22 ` [Bug c++/43116] " bruno at clisp dot org
2010-02-18 23:26 ` [Bug c++/43116] [4.3/4.4/4.5 Regression] " pinskia at gcc dot gnu dot org
@ 2010-03-01 11:50 ` rguenth at gcc dot gnu dot org
2010-03-19 15:34 ` matz at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-01 11:50 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43116
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/43116] [4.3/4.4/4.5 Regression] ICE when using attributes in a function alias declaration
2010-02-18 23:21 [Bug c++/43116] New: ICE when using attributes in a function alias declaration bruno at clisp dot org
` (2 preceding siblings ...)
2010-03-01 11:50 ` rguenth at gcc dot gnu dot org
@ 2010-03-19 15:34 ` matz at gcc dot gnu dot org
2010-03-19 16:37 ` matz at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: matz at gcc dot gnu dot org @ 2010-03-19 15:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from matz at gcc dot gnu dot org 2010-03-19 15:33 -------
I have a patch: http://gcc.gnu.org/ml/gcc-patches/2010-03/msg00893.html
--
matz at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |matz at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2010-02-18 23:25:51 |2010-03-19 15:33:51
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43116
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/43116] [4.3/4.4/4.5 Regression] ICE when using attributes in a function alias declaration
2010-02-18 23:21 [Bug c++/43116] New: ICE when using attributes in a function alias declaration bruno at clisp dot org
` (3 preceding siblings ...)
2010-03-19 15:34 ` matz at gcc dot gnu dot org
@ 2010-03-19 16:37 ` matz at gcc dot gnu dot org
2010-03-19 16:40 ` [Bug c++/43116] [4.3/4.4 " matz at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: matz at gcc dot gnu dot org @ 2010-03-19 16:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from matz at gcc dot gnu dot org 2010-03-19 16:37 -------
Subject: Bug 43116
Author: matz
Date: Fri Mar 19 16:37:27 2010
New Revision: 157578
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157578
Log:
PR c++/43116
* attribs.c (decl_attributes): When rebuilding a function pointer
type use the same qualifiers as the original pointer type.
testsuite/
* g++.dg/other/pr43116.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/other/pr43116.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/attribs.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43116
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/43116] [4.3/4.4 Regression] ICE when using attributes in a function alias declaration
2010-02-18 23:21 [Bug c++/43116] New: ICE when using attributes in a function alias declaration bruno at clisp dot org
` (4 preceding siblings ...)
2010-03-19 16:37 ` matz at gcc dot gnu dot org
@ 2010-03-19 16:40 ` matz at gcc dot gnu dot org
2010-03-22 15:04 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: matz at gcc dot gnu dot org @ 2010-03-19 16:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from matz at gcc dot gnu dot org 2010-03-19 16:40 -------
Fixed for 4.5. Unassigning myself.
--
matz at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|matz at gcc dot gnu dot org |unassigned at gcc dot gnu
| |dot org
Status|ASSIGNED |NEW
Known to fail|4.5.0 4.2.3 4.3.2 |4.2.3 4.3.2
Known to work|4.1.3 |4.1.3 4.5.0
Summary|[4.3/4.4/4.5 Regression] ICE|[4.3/4.4 Regression] ICE
|when using attributes in a |when using attributes in a
|function alias declaration |function alias declaration
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43116
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/43116] [4.3/4.4 Regression] ICE when using attributes in a function alias declaration
2010-02-18 23:21 [Bug c++/43116] New: ICE when using attributes in a function alias declaration bruno at clisp dot org
` (5 preceding siblings ...)
2010-03-19 16:40 ` [Bug c++/43116] [4.3/4.4 " matz at gcc dot gnu dot org
@ 2010-03-22 15:04 ` jakub at gcc dot gnu dot org
2010-03-22 15:29 ` [Bug c++/43116] [4.3 " jakub at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-03-22 15:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jakub at gcc dot gnu dot org 2010-03-22 15:04 -------
Subject: Bug 43116
Author: jakub
Date: Mon Mar 22 15:03:45 2010
New Revision: 157633
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157633
Log:
Backport from mainline:
2010-03-19 Michael Matz <matz@suse.de>
PR c++/43116
* attribs.c (decl_attributes): When rebuilding a function pointer
type use the same qualifiers as the original pointer type.
* g++.dg/other/pr43116.C: New testcase.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/other/pr43116.C
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/attribs.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43116
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/43116] [4.3 Regression] ICE when using attributes in a function alias declaration
2010-02-18 23:21 [Bug c++/43116] New: ICE when using attributes in a function alias declaration bruno at clisp dot org
` (6 preceding siblings ...)
2010-03-22 15:04 ` jakub at gcc dot gnu dot org
@ 2010-03-22 15:29 ` jakub at gcc dot gnu dot org
2010-04-27 12:14 ` rguenth at gcc dot gnu dot org
2010-04-27 12:17 ` rguenth at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-03-22 15:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jakub at gcc dot gnu dot org 2010-03-22 15:29 -------
Fixed also on 4.4 branch.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|4.2.3 4.3.2 |4.2.3 4.3.2 4.4.3
Known to work|4.1.3 4.5.0 |4.1.3 4.5.0 4.4.4
Summary|[4.3/4.4 Regression] ICE |[4.3 Regression] ICE when
|when using attributes in a |using attributes in a
|function alias declaration |function alias declaration
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43116
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/43116] [4.3 Regression] ICE when using attributes in a function alias declaration
2010-02-18 23:21 [Bug c++/43116] New: ICE when using attributes in a function alias declaration bruno at clisp dot org
` (7 preceding siblings ...)
2010-03-22 15:29 ` [Bug c++/43116] [4.3 " jakub at gcc dot gnu dot org
@ 2010-04-27 12:14 ` rguenth at gcc dot gnu dot org
2010-04-27 12:17 ` rguenth at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-27 12:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from rguenth at gcc dot gnu dot org 2010-04-27 12:14 -------
Subject: Bug 43116
Author: rguenth
Date: Tue Apr 27 12:13:52 2010
New Revision: 158781
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158781
Log:
2010-04-27 Richard Guenther <rguenther@suse.de>
Backport from mainline:
2010-03-19 Michael Matz <matz@suse.de>
PR c++/43116
* attribs.c (decl_attributes): When rebuilding a function pointer
type use the same qualifiers as the original pointer type.
* g++.dg/other/pr43116.C: New testcase.
Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/other/pr43116.C
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/attribs.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43116
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/43116] [4.3 Regression] ICE when using attributes in a function alias declaration
2010-02-18 23:21 [Bug c++/43116] New: ICE when using attributes in a function alias declaration bruno at clisp dot org
` (8 preceding siblings ...)
2010-04-27 12:14 ` rguenth at gcc dot gnu dot org
@ 2010-04-27 12:17 ` rguenth at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-27 12:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from rguenth at gcc dot gnu dot org 2010-04-27 12:16 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to fail|4.2.3 4.3.2 4.4.3 |4.2.3 4.3.2 4.3.4 4.4.3
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43116
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2010-04-27 12:17 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-18 23:21 [Bug c++/43116] New: ICE when using attributes in a function alias declaration bruno at clisp dot org
2010-02-18 23:22 ` [Bug c++/43116] " bruno at clisp dot org
2010-02-18 23:26 ` [Bug c++/43116] [4.3/4.4/4.5 Regression] " pinskia at gcc dot gnu dot org
2010-03-01 11:50 ` rguenth at gcc dot gnu dot org
2010-03-19 15:34 ` matz at gcc dot gnu dot org
2010-03-19 16:37 ` matz at gcc dot gnu dot org
2010-03-19 16:40 ` [Bug c++/43116] [4.3/4.4 " matz at gcc dot gnu dot org
2010-03-22 15:04 ` jakub at gcc dot gnu dot org
2010-03-22 15:29 ` [Bug c++/43116] [4.3 " jakub at gcc dot gnu dot org
2010-04-27 12:14 ` rguenth at gcc dot gnu dot org
2010-04-27 12:17 ` rguenth 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).