diff options
author | Jason Merrill <jason@redhat.com> | 2014-02-21 16:57:49 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2014-02-21 16:57:49 -0500 |
commit | d723358d0167b16e3fdffe71e4e5267e3ce01a5f (patch) | |
tree | 4798be7b7948323d5b1d823e6da7148a2dfa189a /gcc/cp/semantics.c | |
parent | c754ffcc4c79086eb49f534db5d353a8041a9c12 (diff) | |
download | gcc-d723358d0167b16e3fdffe71e4e5267e3ce01a5f.zip gcc-d723358d0167b16e3fdffe71e4e5267e3ce01a5f.tar.gz gcc-d723358d0167b16e3fdffe71e4e5267e3ce01a5f.tar.bz2 |
re PR c++/60108 ([C++11] ICE in use_thunk, at cp/method.c:340)
PR c++/60108
* semantics.c (expand_or_defer_fn_1): Check DECL_DEFAULTED_FN.
From-SVN: r208030
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 6f32496..85d6807 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -3986,7 +3986,7 @@ expand_or_defer_fn_1 (tree fn) linkage of all functions, and as that causes writes to the data mapped in from the PCH file, it's advantageous to mark the functions at this point. */ - if (!DECL_IMPLICIT_INSTANTIATION (fn)) + if (!DECL_IMPLICIT_INSTANTIATION (fn) || DECL_DEFAULTED_FN (fn)) { /* This function must have external linkage, as otherwise DECL_INTERFACE_KNOWN would have been |