[llvm-bugs] [Bug 44999] New: assertion "SM->getFileID(Loc) == MacroFileID" in retrieveMacroLocation
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Feb 23 12:16:39 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=44999
Bug ID: 44999
Summary: assertion "SM->getFileID(Loc) == MacroFileID" in
retrieveMacroLocation
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: joerg at NetBSD.org
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
Test case:
source.c:
#define a(b, c) memset(b, 0, c)
#define fontrom (mem + FONT_ADRS)
mem[];
#include "header.h"
d() {
a(fontrom, sizeof(fontrom));
}
header.h:
#define FONT_ADRS 0x110000
This will trigger the assert because the range passed to DiagnosticRenderer.cpp
covers diferent file locations.
--
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/20200223/55e3bedf/attachment.html>
More information about the llvm-bugs
mailing list