diff options
author | David Edelsohn <dje.gcc@gmail.com> | 2014-11-24 14:59:52 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2014-11-24 09:59:52 -0500 |
commit | cf6abd9d9f23b871e5d93be826b988da1a43edf1 (patch) | |
tree | cf28fb3defed196f12a1455c0263d8202b8f961d /gcc/dbxout.c | |
parent | 8403c2cf5f66758fc78a01a675b0d218fded0202 (diff) | |
download | gcc-cf6abd9d9f23b871e5d93be826b988da1a43edf1.zip gcc-cf6abd9d9f23b871e5d93be826b988da1a43edf1.tar.gz gcc-cf6abd9d9f23b871e5d93be826b988da1a43edf1.tar.bz2 |
re PR c++/58561 ([c++11] ICE using declaration of function with auto in return type)
PR c++/58561
* dbxout.c: Include stringpool.h
(dbxout_type) [default]: Ignore auto type.
From-SVN: r218020
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 1f04f72..207db10 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -103,6 +103,7 @@ along with GCC; see the file COPYING3. If not see #include "plugin-api.h" #include "ipa-ref.h" #include "cgraph.h" +#include "stringpool.h" #ifdef XCOFF_DEBUGGING_INFO #include "xcoffout.h" @@ -2329,6 +2330,17 @@ dbxout_type (tree type, int full) break; default: + /* A C++ function with deduced return type can have a TEMPLATE_TYPE_PARM + named 'auto' in its type. + No debug info for TEMPLATE_TYPE_PARM type supported yet. */ + if (lang_GNU_CXX ()) + { + tree name = TYPE_IDENTIFIER (type); + if (name == get_identifier ("auto") + || name == get_identifier ("decltype(auto)")) + break; + } + gcc_unreachable (); } } |