moroso / compiler

The compiler for the Moroso project.
4 stars 3 forks source link

const declarations should allow casting #55

Closed rbenua closed 8 years ago

rbenua commented 8 years ago

When trying to define a constant pointer: const uart_base: *u32 = 0x80001000 as *u32; I get the following error: Non-constant expression where constant expected. This should be possible, as otherwise there's no way to initialize an arbitrary constant pointer.

mrwright commented 8 years ago

Resolved by https://github.com/moroso/compiler/commit/fd9fd318f99401f77c05cc92b83e1a91fda1ca53