mirror of
https://github.com/verilator/verilator.git
synced 2025-04-05 12:12:39 +00:00
Internals: Change cast fileline to point to cast operator
This commit is contained in:
parent
f78c4e8490
commit
f4f8ea0dcf
@ -5012,7 +5012,7 @@ expr<nodeExprp>: // IEEE: part of expression/constant_expression/
|
||||
// // IEEE: cast/constant_cast
|
||||
// // expanded from casting_type
|
||||
| simple_type yP_TICK '(' expr ')'
|
||||
{ $$ = new AstCast{$1->fileline(), $4, VFlagChildDType{}, $1}; }
|
||||
{ $$ = new AstCast{$2, $4, VFlagChildDType{}, $1}; }
|
||||
| yTYPE__ETC '(' exprOrDataType ')' yP_TICK '(' expr ')'
|
||||
{ $$ = new AstCast{$1, $7, VFlagChildDType{},
|
||||
new AstRefDType{$1, AstRefDType::FlagTypeOfExpr{}, $3}}; }
|
||||
|
@ -1,10 +1,10 @@
|
||||
%Error: t/t_cast_class_incompat_bad.v:26:16: Dynamic, not static cast, required to cast 'class{}BaseExtended' from 'class{}Base'
|
||||
%Error: t/t_cast_class_incompat_bad.v:26:28: Dynamic, not static cast, required to cast 'class{}BaseExtended' from 'class{}Base'
|
||||
: ... note: In instance 't'
|
||||
: ... Suggest dynamic $cast
|
||||
26 | cls_ab = BaseExtended'(cls_a);
|
||||
| ^~~~~~~~~~~~
|
||||
%Error: t/t_cast_class_incompat_bad.v:27:15: Incompatible types to static cast to 'class{}Other' from 'class{}BaseExtended'
|
||||
| ^
|
||||
%Error: t/t_cast_class_incompat_bad.v:27:20: Incompatible types to static cast to 'class{}Other' from 'class{}BaseExtended'
|
||||
: ... note: In instance 't'
|
||||
27 | other = Other'(cls_ab);
|
||||
| ^~~~~
|
||||
| ^
|
||||
%Error: Exiting due to
|
||||
|
@ -1,6 +1,6 @@
|
||||
%Error-UNSUPPORTED: t/t_math_wide_bad.v:23:15: Unsupported: operator ISTORD operator of 64 bits exceeds hardcoded limit VL_MULS_MAX_WORDS in verilatedos.h
|
||||
%Error-UNSUPPORTED: t/t_math_wide_bad.v:23:19: Unsupported: operator ISTORD operator of 64 bits exceeds hardcoded limit VL_MULS_MAX_WORDS in verilatedos.h
|
||||
23 | assign r = real'(a);
|
||||
| ^~~~
|
||||
| ^
|
||||
... For error description see https://verilator.org/warn/UNSUPPORTED?v=latest
|
||||
%Error-UNSUPPORTED: t/t_math_wide_bad.v:22:18: Unsupported: operator POWSS operator of 5472 bits exceeds hardcoded limit VL_MULS_MAX_WORDS in verilatedos.h
|
||||
22 | assign z2 = a ** 3;
|
||||
|
Loading…
Reference in New Issue
Block a user