LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 45771 - Frontend crash on += operator with ISO/IEC 18037 types
Summary: Frontend crash on += operator with ISO/IEC 18037 types
Status: NEW
Alias: None
Product: clang
Classification: Unclassified
Component: C (show other bugs)
Version: unspecified
Hardware: PC Linux
: P enhancement
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-01 11:39 PDT by Stefan Huber
Modified: 2020-05-01 12:42 PDT (History)
6 users (show)

See Also:
Fixed By Commit(s):


Attachments
Backtrace (6.42 KB, text/plain)
2020-05-01 11:39 PDT, Stefan Huber
Details
The C source that provokes the segfault (251 bytes, text/x-csrc)
2020-05-01 11:40 PDT, Stefan Huber
Details
Crash reproducer (1.80 KB, application/x-shellscript)
2020-05-01 11:41 PDT, Stefan Huber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Huber 2020-05-01 11:39:31 PDT
Created attachment 23432 [details]
Backtrace

The frontend of clang-9.0.1 on Gentoo Linux crashes when compiling a C file that contains an invocation of the += operator on ISO/IEC 18037 types, like _Fract, _Accum or variants of these.

I could not reproduce this issue with clang-7.0.1-8 on Debian Buster or with clang-10.0.0 on Windows via msys2. However, Michał Górny could reproduce it on 10.0.0 on Gentoo Linux as well, see https://bugs.gentoo.org/720270
Comment 1 Stefan Huber 2020-05-01 11:40:54 PDT
Created attachment 23433 [details]
The C source that provokes the segfault
Comment 2 Stefan Huber 2020-05-01 11:41:34 PDT
Created attachment 23434 [details]
Crash reproducer
Comment 3 Michał Górny 2020-05-01 12:42:09 PDT
I've just finished building master and I can't reproduce it there.