[Bug 1718705] Re: /usr/include/c++/5/limits:1598:7: internal compiler error: Illegal instruction

Launchpad Bug Tracker 1718705 at bugs.launchpad.net
Tue Nov 21 04:17:28 UTC 2017


[Expired for gcc-5 (Ubuntu) because there has been no activity for 60
days.]

** Changed in: gcc-5 (Ubuntu)
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-5 in Ubuntu.
https://bugs.launchpad.net/bugs/1718705

Title:
  /usr/include/c++/5/limits:1598:7: internal compiler error: Illegal
  instruction

Status in gcc-5 package in Ubuntu:
  Expired

Bug description:
  /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

  Time.hpp
  #ifndef TIME_HPP
  #define TIME_HPP

  #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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1718705/+subscriptions



More information about the foundations-bugs mailing list