source: tests/.expect/alloc-ERROR.txt @ ea10f64

Last change on this file since ea10f64 was b6f2e7ab, checked in by Andrew Beach <ajbeach@…>, 2 months ago

Removed SizeofExpr::expr and AlignofExpr::expr, expressions that would be stored there are wrapped in TypeofType? and stored in the type field. Some special cases to hide the typeof in code generation were added. In addition, initializer length is calculated in more cases so that the full type of more arrays is known sooner. Other than that, most of the code changes were just stripping out the conditional code and checks no longer needed. Some tests had to be updated, because the typeof is not hidden in dumps and the resolver replaces known typeof expressions with the type. The extension case caused some concern but it appears that just hides warnings in the expression which no longer exists.

  • Property mode set to 100644
File size: 960 bytes
RevLine 
[5c028ac]1alloc.cfa:382:1 error: Invalid application of existing declaration(s) in expression Applying untyped:
[cdbfab0]2  Name: ?=?
[07ec1a2]3...to:
[cfbc703d]4  Name: ip
[07ec1a2]5  Applying untyped:
[fc67d6f]6    Name: realloc
[07ec1a2]7  ...to:
[cdbfab0]8    Name: stp
[07ec1a2]9    Applying untyped:
[cdbfab0]10      Name: ?*?
[07ec1a2]11    ...to:
[cdbfab0]12      Name: dim
[b6f2e7ab]13      Sizeof Expression on: type-of expression Applying untyped:
[cdbfab0]14          Name: *?
[07ec1a2]15        ...to:
[cdbfab0]16          Name: stp
17
[cd6a6ff]18      ... with resolved type:
19        unsigned long int
[cdbfab0]20
21
22
[5c028ac]23alloc.cfa:383:1 error: Invalid application of existing declaration(s) in expression Applying untyped:
[cdbfab0]24  Name: ?=?
[07ec1a2]25...to:
[cfbc703d]26  Name: ip
[07ec1a2]27  Applying untyped:
[cdbfab0]28    Name: memset
[07ec1a2]29  ...to:
[cdbfab0]30    Name: stp
[5c028ac]31    Constant Expression (10: signed int)
[cd6a6ff]32    ... with resolved type:
33      signed int
[cdbfab0]34
35
[5c028ac]36alloc.cfa:384:1 error: Invalid application of existing declaration(s) in expression Applying untyped:
[cdbfab0]37  Name: ?=?
[07ec1a2]38...to:
[cfbc703d]39  Name: ip
[07ec1a2]40  Applying untyped:
[cdbfab0]41    Name: memcpy
[07ec1a2]42  ...to:
[cdbfab0]43    Address of:
44      Name: st1
45    Address of:
46      Name: st
47
48
Note: See TracBrowser for help on using the repository browser.