mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
parent
5f47410afc
commit
be6a7bb529
2 changed files with 3 additions and 3 deletions
|
@ -2435,7 +2435,7 @@ private void expressionPrettyPrint(Expression e, ref OutBuffer buf, ref HdrGenSt
|
|||
void visitSymOff(SymOffExp e)
|
||||
{
|
||||
if (e.offset)
|
||||
buf.printf("(& %s%+lld)", e.var.toChars(), e.offset);
|
||||
buf.printf("(& %s + %llu)", e.var.toChars(), e.offset);
|
||||
else if (e.var.isTypeInfoDeclaration())
|
||||
buf.writestring(e.var.toChars());
|
||||
else
|
||||
|
|
|
@ -14,7 +14,7 @@ fail_compilation/fail13902.d(33): Error: returning `&s1.v` escapes a reference t
|
|||
fail_compilation/fail13902.d(38): Error: returning `& sa1` escapes a reference to local variable `sa1`
|
||||
fail_compilation/fail13902.d(39): Error: returning `& sa2` escapes a reference to local variable `sa2`
|
||||
fail_compilation/fail13902.d(40): Error: returning `& x` escapes a reference to local variable `x`
|
||||
fail_compilation/fail13902.d(41): Error: returning `(& x+4)` escapes a reference to local variable `x`
|
||||
fail_compilation/fail13902.d(41): Error: returning `(& x + 4)` escapes a reference to local variable `x`
|
||||
fail_compilation/fail13902.d(42): Error: returning `& x + cast(long)x * 4L` escapes a reference to local variable `x`
|
||||
fail_compilation/fail13902.d(45): Error: returning `& y` escapes a reference to local variable `y`
|
||||
---
|
||||
|
@ -59,7 +59,7 @@ fail_compilation/fail13902.d(76): Error: returning `&s1.v` escapes a reference t
|
|||
fail_compilation/fail13902.d(81): Error: returning `& sa1` escapes a reference to parameter `sa1`
|
||||
fail_compilation/fail13902.d(82): Error: returning `& sa2` escapes a reference to parameter `sa2`
|
||||
fail_compilation/fail13902.d(83): Error: returning `& x` escapes a reference to parameter `x`
|
||||
fail_compilation/fail13902.d(84): Error: returning `(& x+4)` escapes a reference to parameter `x`
|
||||
fail_compilation/fail13902.d(84): Error: returning `(& x + 4)` escapes a reference to parameter `x`
|
||||
fail_compilation/fail13902.d(85): Error: returning `& x + cast(long)x * 4L` escapes a reference to parameter `x`
|
||||
fail_compilation/fail13902.d(88): Error: returning `& y` escapes a reference to parameter `y`
|
||||
---
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue