* [C++ PATCH] Fix up DW_AT_explicit handling (PR debug/56563)
@ 2014-02-19 15:30 Jakub Jelinek
2014-02-19 18:01 ` Jason Merrill
0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2014-02-19 15:30 UTC (permalink / raw)
To: Jason Merrill, Dodji Seketeli; +Cc: gcc-patches
Hi!
Say on
struct S { explicit S () {}; } s;
struct T { explicit T (int x) {}; } t(2);
struct U { explicit operator int () { return 6; } } u;
G++ mysteriously emits DW_AT_explicit only on T::T(int) and not
on S::S() nor U::operator int().
Fixed thusly, ok for trunk?
2014-02-19 Jakub Jelinek <jakub@redhat.com>
PR debug/56563
* cp-objcp-common.c (cp_function_decl_explicit_p): Remove
FUNCTION_FIRST_USER_PARMTYPE (decl) != void_list_node check.
--- gcc/cp/cp-objcp-common.c.jj 2014-01-02 23:50:57.000000000 +0100
+++ gcc/cp/cp-objcp-common.c 2014-02-19 15:13:05.576141197 +0100
@@ -160,7 +160,6 @@ bool
cp_function_decl_explicit_p (tree decl)
{
return (decl
- && FUNCTION_FIRST_USER_PARMTYPE (decl) != void_list_node
&& DECL_LANG_SPECIFIC (STRIP_TEMPLATE (decl))
&& DECL_NONCONVERTING_P (decl));
}
Jakub
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [C++ PATCH] Fix up DW_AT_explicit handling (PR debug/56563)
2014-02-19 15:30 [C++ PATCH] Fix up DW_AT_explicit handling (PR debug/56563) Jakub Jelinek
@ 2014-02-19 18:01 ` Jason Merrill
0 siblings, 0 replies; 2+ messages in thread
From: Jason Merrill @ 2014-02-19 18:01 UTC (permalink / raw)
To: Jakub Jelinek, Dodji Seketeli; +Cc: gcc-patches
OK.
Jason
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-19 18:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-19 15:30 [C++ PATCH] Fix up DW_AT_explicit handling (PR debug/56563) Jakub Jelinek
2014-02-19 18:01 ` Jason Merrill
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).