struct type inside 'extern "C"' causes crash, except as lhs of typedef
ID0001965: **This issue was created automatically from Mantis Issue 1965. Further discussion may take place here.** --- | **Id** | **Project** | **Category** | **View** | **Due Date** | **Updated** | | --- | --- | --- | --- | --- | --- | | ID0001965 | Frama-Clang | Plug-in > clang | public | 2014-11-13 | 2015-02-15 | | | | | | | | | --- | --- | --- | --- | --- | --- | | **Reporter** | Jochen | **Assigned To** | virgile | **Resolution** | open | | **Priority** | normal | **Severity** | crash | **Reproducibility** | always | | **Platform** | frama-c-Neon-20140301+dev-stance | **OS** | - | **OS Version** | xubuntu-cfe13.10 | | **Product Version** | - | **Target Version** | - | **Fixed in Version** | - | ### Description : output: Now output intermediate result 132.cpp:4:[fclang] failure: Unknown declaration in extern C structure definition [kernel] Current source was: 132.cpp:4 The full backtrace is: Raised at file "src/kernel/log.ml", line 524, characters 30-31 Called from file "src/kernel/log.ml", line 518, characters 9-16 Re-raised at file "src/kernel/log.ml", line 521, characters 15-16 Called from file "list.ml", line 74, characters 24-34 Called from file "src/frama-clang/convert.ml", line 2032, characters 10-61 Called from file "src/frama-clang/convert.ml", line 2262, characters 21-48 Called from file "list.ml", line 74, characters 24-34 Called from file "src/frama-clang/convert.ml", line 2266, characters 4-79 Called from file "src/frama-clang/frama_Clang_register.ml", line 86, characters 13-36 Called from file "src/kernel/file.ml", line 1073, characters 10-43 Called from file "src/kernel/file.ml", line 1117, characters 23-30 Called from file "list.ml", line 74, characters 24-34 Called from file "src/kernel/file.ml", line 1114, characters 6-520 Called from file "src/kernel/file.ml", line 2179, characters 12-30 Called from file "src/kernel/file.ml", line 2264, characters 4-27 Called from file "src/kernel/ast.ml", line 111, characters 2-28 Called from file "src/kernel/ast.ml", line 123, characters 53-71 Called from file "src/kernel/boot.ml", line 29, characters 6-20 Called from file "src/kernel/cmdline.ml", line 761, characters 2-9 Called from file "src/kernel/cmdline.ml", line 216, characters 4-8 Plug-in fclang aborted: internal error. Please report as 'crash' at http://bts.frama-c.com/. Your Frama-C version is Neon-20140301+dev-stance. When activated, each of the lines 5 and 6 causes a similar crash. This problem prohibits use of <stdio.h>. ## Attachments - [132.cpp](/uploads/c8d869273866f020befb12a0e330ae22/132.cpp)
issue