[Bug c++/24761] [4.0/4.1 Regression] Missing register load before inline asm in templated function causes SIGSEGV

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Nov 9 20:24:00 GMT 2005



------- Comment #4 from pinskia at gcc dot gnu dot org  2005-11-09 20:24 -------
Simplified example:
template <int>
int f(int i)
{
  asm("%0 %1 " : "+r"(i) );
  return i;
}

int main(void)
{
  f<0>(0)+ f<1>(0);
}
-----


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
          Component|inline-asm                  |c++
     Ever Confirmed|0                           |1
           Keywords|                            |wrong-code
      Known to fail|                            |2.95.3 4.0.0 4.1.0
      Known to work|                            |3.4.0 3.3.3 3.2.3 3.0.4
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-09 20:24:19
               date|                            |
            Summary|Missing register load before|[4.0/4.1 Regression] Missing
                   |inline asm in templated     |register load before inline
                   |function causes SIGSEGV     |asm in templated function
                   |                            |causes SIGSEGV
   Target Milestone|---                         |4.0.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24761



More information about the Gcc-bugs mailing list