Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kfischer at college dot harvard.edu
Target Milestone: ---
Consider the following:
```
template class A {
template static T pi;
};
template <> template double A::pi =
3.1415926535897932385;
extern template
-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: kfischer at college dot harvard.edu
Target Milestone: ---
I am compiling LLVM on Windows using Mingw-w64's pre-built GCC 5.2.0 for MSYS2
and believe the generated code is invalid. The effect of this miscompilation is
an
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68601
--- Comment #2 from Keno Fischer ---
The default options used by LLVM's build system:
```
g++ -m64
-I/home/Administrator/julia/deps/build/llvm-svn/build_Release+Asserts/include
-I/home/Administrator/julia/deps/build/llvm-svn/build_Release+Assert
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68601
--- Comment #3 from Keno Fischer ---
`-fno-strict-aliasing` does not seem to change the generated assembly.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68601
--- Comment #5 from Keno Fischer ---
Created attachment 36866
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36866&action=edit
Preprocessed source
Trying to attach again. This is part of latest LLVM trunk.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68601
--- Comment #8 from Keno Fischer ---
Great, thank you, I was having quite a bit of trouble trying to reduce this
one.
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: kfischer at college dot harvard.edu
Target Milestone: ---
This is reduced from https://github.com/JuliaLang/julia/issues/18162.
It appears that GCC miscompiles LLVM when targeting
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77333
--- Comment #2 from Keno Fischer ---
Still broken adding both options to the compile.