re PR c++/34938 (ICE with function pointers and attribute noreturn)
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 25 Aug 2014 08:32:04 +0000 (08:32 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 25 Aug 2014 08:32:04 +0000 (08:32 +0000)
commit985acf5a0ac506f6df453475d0bfd7466ad392d5
treee33f8a7749a7fbd62dcf2839192eb89550037785
parent028aee171abc1b13e97734bac4a3db46743d7a6b
re PR c++/34938 (ICE with function pointers and attribute noreturn)

/cp
2014-08-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/34938
* cp-tree.h (TFF_POINTER): Add.
* cxx-pretty-print.h (pp_cxx_cv_qualifiers): Forward the third
argument too.
* error.c (dump_type_suffix): Actually print the const and noreturn
attribute when appropriate.

/testsuite
2014-08-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/34938
* g++.dg/template/pr34938-1.C: New.
* g++.dg/template/pr34938-2.C: Likewise.

From-SVN: r214415
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/cxx-pretty-print.h
gcc/cp/error.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/pr34938-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/pr34938-2.C [new file with mode: 0644]