Skip to content

template parameter type can't used in typedef

ID0001972: This issue was created automatically from Mantis Issue 1972. Further discussion may take place here.


Id Project Category View Due Date Updated
ID0001972 Frama-Clang Plug-in > clang public 2014-11-17 2015-04-27
Reporter Jochen Assigned To virgile Resolution open
Priority normal Severity minor 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 136.cpp:6:[kernel] failure: Cannot find type _ZN6traitsIiE2stE2tp (kind:type)

The problem disappears if the surrounding "struct st {" and "};" is deleted in line 3, and "st::" is deleted in line 6.

BTW: A call of "c++filt -n _ZN6traitsIiE2stE2tp" yields "traits::st(tp)", while I would have expected "traits::st::tp".

(Importance: this code is used via #include .)

Other issues that involve both typedef and templates were/are #1705 (closed), #1580, #1531 (closed). One of them might be related to the problem here.

Attachments

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information