fix cases where compoundlits are constant/get an entity
authorMatthias Braun <matze@braunis.de>
Wed, 28 Nov 2012 12:29:38 +0000 (13:29 +0100)
committerMatthias Braun <matze@braunis.de>
Wed, 28 Nov 2012 12:34:16 +0000 (13:34 +0100)
commitd7384b0b065dd6195ac6649c4d48a06905bc8fe7
tree4a03087a7f61f78a61db047391ad5e837c6cd586
parente67ba5c2bf2970a8d7ae9c90ac0bcf0d72ae70a5
fix cases where compoundlits are constant/get an entity

This is possible when they are in global scope (and have a constant
initializers anyway) or when they have a const type and constant
initializers.
ast.c
ast2firm.c
ast_t.h
parser.c