Opened 3 weeks ago
Closed 3 weeks ago
#14955 closed defect (fixed)
Bad varid for enumerator with using namespace
| Reported by: | chrchr | Owned by: | ludviggunne |
|---|---|---|---|
| Priority: | Normal | Milestone: | 2.22 |
| Component: | Other | Version: | |
| Keywords: | varid | Cc: |
Description
From #14952:
namespace O {} namespace N { using namespace O; enum class E { E0 }; auto E0 = E::E0; }
2: namespace N {
3: using namespace O ;
4: enum class E { E0@var1 } ;
5: auto E0@var1 ; E0@var1 =@exprUNIQUE E ::@exprUNIQUE E0@var1 ;
6: }
Change History (2)
comment:1 by , 3 weeks ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 3 weeks ago
| Milestone: | → 2.22 |
|---|---|
| Resolution: | → fixed |
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Fixed by https://github.com/cppcheck-opensource/cppcheck/pull/8773.