Debian Codegraph @

gcc/testsuite/gm2/iso/fail/bug8.mod

raw
1 MODULE bug8;
2
3 (* Missing import; Using the element in an expression crashes the compiler. *)
4 (* Using the element in an assignment is working. *)
5
6 FROM ChanConsts IMPORT (*read, text,*) FlagSet;
7
8 VAR flags:FlagSet;
9 BEGIN
10 flags:=read; (* OK, no expression *)
11 flags:=read+text; (* gm2 -g -fiso Bug8.mod
12 Bug8.mod:10:5:*** fatal error ***
13 ../../gm2/gcc-versionno/gcc/gm2/gm2-compiler/SymbolTable.mod:6399:1:*** internal error *** illegal symbol
14 cc1gm2: internal compiler error: Aborted
15 *)
16
17 END bug8.