Public bug reported:
(I hope I was able to classify the bug correctly)
I am for various reasons implementing a C-printf format specifier as a
constexpr function in order to be able to parse format specifiers during
compile-time.
This causes an internal compiler error in clang.
This is somewhat of murky code so it's unclear if I managed to do it
100% ISO C++14 but I think most can agree the compiler shouldn't crash.
For what it's worth the same code works in GCC.4.9.2.
Attached the source + scripts.
Thanks in advance.
Mårten
PS. Any suggestions for work-arounds or corrections accepted gratefully.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: clang 1:3.6-26ubuntu1
ProcVersionSignature: Ubuntu 3.19.0-28.30-generic 3.19.8-ckt5
Uname: Linux 3.19.0-28-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.5
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Oct 10 16:26:56 2015
InstallationDate: Installed on 2015-09-19 (20 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
SourcePackage: llvm-defaults
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: llvm-defaults (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug clang vivid
** Attachment added: "File containing source + bash scripts that repro the
issue on clang 3.6.0"
https://bugs.launchpad.net/bugs/1504790/+attachment/4490831/+files/bug.tgz
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1504790
Title:
clang: Internal Compiler error when writing a constexpr parser
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1504790/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs