** Description changed:
+ /usr/include/c++/5/limits:1598:7: internal compiler error: Illegal instruction
+ min() _GLIBCXX_USE_NOEXCEPT { return __FLT_MIN__; }
+
+ g++-5 -o test test.cpp -std=c++14 -lSDL2 -lSDL2_image
+ In file included from /usr/include/c++/5/chrono:40:0,
+ from ../include/Handling/Time.hpp:4,
+ from ../include/Handling/Time.cpp:4,
+ from ../include/INCLUDE.hpp:6,
+ from test.hpp:2,
+ from test.cpp:1:
/usr/include/c++/5/limits:1598:7: internal compiler error: Illegal instruction
min() _GLIBCXX_USE_NOEXCEPT { return __FLT_MIN__; }
+ ^
+ Please submit a full bug report,
+ with preprocessed source if appropriate.
+ See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
+ make: *** [all] Error 1
- Seems to be mainly involved with /usr/include/c++/5/chrono:40:0
+ Time.hpp
+ #ifndef TIME_HPP
+ #define TIME_HPP
- It did this all of the sudden. I don't know why.
+ #include <chrono>
+ #include <ratio>
+
+ using namespace std;
+ using namespace std::chrono;
+
+ typedef steady_clock::time_point tPoint;
+
+ class sTimer
+ {
+ private:
+
+ // The time when the timer was started.
||
+
+ tPoint start;
+
+ public:
+
+ int tStart();
+
+ long double tGet();
+ };
+
+ #endif
+
+
+ Time.cpp
+ #ifndef TIME_CPP
+ #define TIME_CPP
+
+ #include "Time.hpp"
+
+ using namespace std;
+ using namespace std::chrono;
+
+ int sTimer::tStart()
+ {
+ this->start = steady_clock::now();
+ }
+
+ long double sTimer::tGet()
+ {
+ steady_clock::time_point tp = steady_clock::now();
+
+ duration<milliseconds> dur = duration_cast<milliseconds>(tp -
this->start);
+
+ long double r = dur.count();
+
+ int ret = r;
+
+ return ret;
+ }
+
+ #endif
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1718705
Title:
/usr/include/c++/5/limits:1598:7: internal compiler error: Illegal
instruction
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1718705/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs