# Reparsing templated types does not update type definitions in IDA Local Types

**URL:** <https://community.hex-rays.com/t/reparsing-templated-types-does-not-update-type-definitions-in-ida-local-types/438>\
**Category:** Bugs\
**Created:** [August 11, 2025, 12:00pm UTC](https://community.hex-rays.com/t/reparsing-templated-types-does-not-update-type-definitions-in-ida-local-types/438 "2025-08-11T12:00:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![idauser](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@idauser](https://community.hex-rays.com/u/idauser)\
**Post date:** [August 11, 2025, 12:00pm UTC](https://community.hex-rays.com/t/reparsing-templated-types-does-not-update-type-definitions-in-ida-local-types/438/1 "2025-08-11T12:00:05Z")

</div>

**Affected IDA version:**  
Probably all of them starting from the very first version to include clang support and up to 9.2 beta 2.

**Steps to reproduce.**

1. Compile the following C++ program (Windows, Linux, MacOS):

```auto
int main(){}

```

1. Open and decompile generated executable in IDA (any other executable will also do).

2. Under Options \> Compiler choose:

- “Source parser”: clang (new or old does not matter);
- "Parser specific options” check “Apply tinfo to mangled names” (may not be relevant for this super simple example but important for real use-cases when mangled debug names are available in the executable).

1. Do File \> Load file \> Parse C header file (Ctrl+F9) for the following header file:

```auto
struct SimpleStruct
{
	int a; // Change type/name here then reparse (see step 6 below).
	int b;
};

template<typename T>
struct TemplatedStruct
{
	int a; // Change type/name here then reparse (see step 6 below).
	T b;
};

using dummy = TemplatedStruct<int>; // This line forces IDA to create a Local Type for TemplatedStruct<int> in the IDA database.

```

1. Inspect “Local Types” window and observe created definitions for `SimpleStruct` and `TemplatedStruct<int>`.

2. Modify header file above, for ex. change `int a;` to `char aaa;` for both `SimpleStruct` and `TemplatedStruct<int>`.

3. Parse Ctrl+F9 modified header file again.

4. Inspect “Local Types” window and observe how the old definition for `SimpleStruct` is updated with `char aaa;` but the definition for `TemplatedStruct<int>` is not updated.

**Expected behaviour:**

Reparsing header file automatically updates definition of `TemplatedStruct<int>` in IDA Local Types analogous how it updated definition for `SimpleStruct`.

---

<div class="post-metadata">

**Author:** ![teresa\_hexrays](https://sea2.discourse-cdn.com/flex002/user_avatar/community.hex-rays.com/teresa_hexrays/32/11_2.png) [@teresa\_hexrays](https://community.hex-rays.com/u/teresa_hexrays)\
**Post date:** [August 13, 2025, 9:01am UTC](https://community.hex-rays.com/t/reparsing-templated-types-does-not-update-type-definitions-in-ida-local-types/438/2 "2025-08-13T09:01:18Z")

</div>

Hello,  
Thanks for taking the time to describe your issue. Could you please open an official [bug report](https://get.support.hex-rays.com/) for it? That way, it won’t get lost and we can track it properly. Thank you!

---

<div class="post-metadata">

**Author:** ![idauser](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@idauser](https://community.hex-rays.com/u/idauser)\
**Post date:** [August 13, 2025, 9:36am UTC](https://community.hex-rays.com/t/reparsing-templated-types-does-not-update-type-definitions-in-ida-local-types/438/3 "2025-08-13T09:36:36Z")

</div>

Submitted report using provided link: “Your reference is SUPPORT-5667”.
