Issue is similar to https://forums.oracle.com/ords/apexds/post/analyzer-does-not-see-source-files-1029
Version: "Studio 12.6"
Reproduced issue with standalone code. Source file view available when code is compiled with GCC9.3 but not with GCC12.4
gcc/v12.4.0/bin/g++ -g -std=c++17 a.cpp -o bin12.4
gcc/v9.3.0/bin/g++ -g -std=c++17 a.cpp -o bin9.3
sunstudio/bin/er_print -dis main run_new_12.4.er/
Source file: (unknown)
Object file: bin12.4 (found as run_new_12.4.er/archives/bin12.4_HcTLiXSa5V4)
Load Object: bin12.4 (found as run_new_12.4.er/archives/bin12.4_HcTLiXSa5V4)
Excl. Incl.
Total Total
CPU sec. CPU sec.
<Function: main>
0. 0. [?] 40118c: pushq %rbp
0. 0. [?] 40118d: movq %rsp,%rbp
0. 0. [?] 401190: subq $0x10,%rsp
0. 0. [?] 401194: movl $0,-8(%rbp)
0. 0. [?] 40119b: jmp .+0x2e [ 0x4011c9 ]
0. 0. [?] 40119d: movl -8(%rbp),%ecx
0. 0. [?] 4011a0: movslq %ecx,%rax
0. 0. [?] 4011a3: imulq $0x55555556,%rax,%rax
0. 0. [?] 4011aa: shrq $0x20,%rax
0. 0. [?] 4011ae: movq %rax,%rdx
0. 0. [?] 4011b1: movl %ecx,%eax
0. 0. [?] 4011b3: sarl $0x1f,%eax
0. 0. [?] 4011b6: subl %eax,%edx
0. 0. [?] 4011b8: movl %edx,%eax
0. 0. [?] 4011ba: addl %eax,%eax
0. 0. [?] 4011bc: addl %edx,%eax
0. 0. [?] 4011be: subl %eax,%ecx
0. 0. [?] 4011c0: movl %ecx,%edx
0. 0. [?] 4011c2: addl %edx,-4(%rbp)
0. 0. [?] 4011c5: addl $1,-8(%rbp)
0. 0. [?] 4011c9: cmpl $0x1869f,-8(%rbp)
0. 0. [?] 4011d0: jle .-0x33 [ 0x40119d ]
## 0. 8.500 [?] 4011d2: call func() [ 0x401146, .-0x8c ]
0. 0. [?] 4011d7: movl $0,%eax
0. 0. [?] 4011dc: leave
0. 0. [?] 4011dd: ret
Regards,
Hitesh