This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/68948] G++ voluntarily removes a function call with terrible side effects


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68948

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |c++

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---


              <<cleanup_point __asm__ __volatile__("Here"::)>>;
              <<< Unknown tree: expr_stmt
  <<< error >>> >>>;
              <<cleanup_point __asm__ __volatile__("Here"::)>>;


That is interesting.  The front-end did not issue an error but still produced
an error node tree.

This still happens on the trunk.  Let me try to reduce it.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]