]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c++/43116 (ICE when using attributes in a function alias declaration)
authorRichard Guenther <rguenther@suse.de>
Tue, 27 Apr 2010 12:13:52 +0000 (12:13 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 27 Apr 2010 12:13:52 +0000 (12:13 +0000)
commite58fd664548f1f8fb76405910bfd0cbdf3c3a83a
tree4d82e1fd33f0c42d1f48800bd393531d98a654e7
parent74e2cb98f1a190c791d89dc4f27a5982309684e2
backport: re PR c++/43116 (ICE when using attributes in a function alias declaration)

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.

From-SVN: r158781
gcc/ChangeLog
gcc/attribs.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr43116.C [new file with mode: 0644]