On 11/01/2017 03:40 PM, Jakub Jelinek wrote:
On Wed, Nov 01, 2017 at 03:24:56PM -0400, Nathan Sidwell wrote:
Thomas Koenig noticed -fdump-lang-raw gives an immediate ICE. I broke it
with the DECL_ASSEMBLER_NAME changes last month. Fixed thusly, applied as
obvious.
Shouldn't there be a testcase with that option?
Oh, very well then :)
nathan
--
Nathan Sidwell
2017-11-02 Nathan Sidwell <nat...@acm.org>
* g++.dg/lang-dump.C: New.
Index: g++.dg/lang-dump.C
===================================================================
--- g++.dg/lang-dump.C (revision 0)
+++ g++.dg/lang-dump.C (working copy)
@@ -0,0 +1,21 @@
+// { dg-additional-options "-fdump-lang-all" }
+// Just check we don't explode when asking for language dumps. Does
+// not necessarily mean any particular language dump is useful.
+
+struct X
+{
+ int m;
+ virtual ~X ();
+};
+
+X::~X () {}
+
+struct Y : X
+{
+};
+
+int frob (int a)
+{
+ return 2 * a;
+}
+