Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
Qt Creator 3.6.1, Qt Creator 4.0.0-beta1
-
None
-
qt-creator-opensource-windows-x86-4.0.0-rc1
mingw64
Windows 10 Home (64bits)
Description
// C++ file that causes QtCreator crash
enum foo_t { A, B, C, D }; constexpr foo_t parent_of(const foo_t f) { return (f < D) ? static_cast<foo_t>(f+1) : D; } template <typename T> union index_ptr_t { unsigned int index; const T* ptr; }; template <foo_t> struct Dummy; namespace impl { template <foo_t f> struct dummy_impl { index_ptr_t<Dummy<parent_of(f)>> parent; }; template <> struct dummy_impl<D> {}; } // namespace impl template <foo_t f> struct Dummy : impl::dummy_impl<f> {}; struct DummiesSet { index_ptr_t<Dummy<A>> a; index_ptr_t<Dummy<B>> b; void operator=(const Dummy<A>* _a) { a.ptr = _a; b.ptr = a.ptr->parent.ptr; } };
Attachments
For Gerrit Dashboard: QTCREATORBUG-15967 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
156116,6 | C++: Fix accessing invalid file id of Symbol | 4.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |