From d8071819fc41e8fdb80f0719da554f60afeebda4 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 27 Nov 2022 05:59:40 -0500 Subject: [PATCH] Fix unquoted name in dtype errors. --- src/V3AstNodeDType.h | 2 +- test_regress/t/t_randomize_method_types_unsup.out | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3AstNodeDType.h b/src/V3AstNodeDType.h index 2e76588bd..69b2f5bec 100644 --- a/src/V3AstNodeDType.h +++ b/src/V3AstNodeDType.h @@ -1073,7 +1073,7 @@ public: void dumpSmall(std::ostream& str) const override; string name() const override { return m_name; } string prettyDTypeName() const override { - return subDTypep() ? subDTypep()->name() : prettyName(); + return subDTypep() ? prettyName(subDTypep()->name()) : prettyName(); } AstBasicDType* basicp() const override VL_MT_SAFE { return subDTypep() ? subDTypep()->basicp() : nullptr; diff --git a/test_regress/t/t_randomize_method_types_unsup.out b/test_regress/t/t_randomize_method_types_unsup.out index 66d2da0d7..175d8a134 100644 --- a/test_regress/t/t_randomize_method_types_unsup.out +++ b/test_regress/t/t_randomize_method_types_unsup.out @@ -11,7 +11,7 @@ : ... In instance t 14 | rand int unpackarr[5]; | ^~~~~~~~~ -%Error-UNSUPPORTED: t/t_randomize_method_types_unsup.v:15:15: Unsupported: random member variables with type '__024unit::Union' +%Error-UNSUPPORTED: t/t_randomize_method_types_unsup.v:15:15: Unsupported: random member variables with type '$unit::Union' : ... In instance t 15 | rand Union uni; | ^~~