https://bugs.llvm.org/show_bug.cgi?id=40275

            Bug ID: 40275
           Summary: Analyzer says that 'auto [a,b]' is never used when it
                    is used
           Product: clang
           Version: 7.0
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

This line https://github.com/yurivict/gas-simulator/blob/master/main.cpp#L459
causes this wrong message:

> main.cpp:531:10: warning: Value stored to '[theta, phi]' during its 
> initialization is never read
>     auto [theta,phi] = sphereAngles();
>          ^             ~~~~~~~~~~~~~~


Both variables are obviously used there.

clang-70 on FreeBSD 11.2.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to