[llvm-bugs] [Bug 41774] New: GetFullTypeForDeclarator - ExpectNoDerefChunk assigned twice successively
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon May 6 11:35:58 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41774
Bug ID: 41774
Summary: GetFullTypeForDeclarator - ExpectNoDerefChunk assigned
twice successively
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: libclang
Assignee: unassignedclangbugs at nondot.org
Reporter: llvm-dev at redking.me.uk
CC: aaron at aaronballman.com, klimek at google.com,
leonardchan at google.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Blocks: 41655
rL348442 sets the ExpectNoDerefChunk value twice successively:
if (DeclType.Kind != DeclaratorChunk::Paren) {
if (ExpectNoDerefChunk) {
if (!IsNoDerefableChunk(DeclType))
S.Diag(DeclType.Loc, diag::warn_noderef_on_non_pointer_or_array);
ExpectNoDerefChunk = false;
}
ExpectNoDerefChunk = state.didParseNoDeref();
}
Reported in https://www.viva64.com/en/b/0629/ (Snippets No. 27).
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=41655
[Bug 41655] Finding Bugs in LLVM 8 with PVS-Studio
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190506/2eeb555b/attachment-0001.html>
More information about the llvm-bugs
mailing list