Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-534

Casting causes segmentation fault in #defines when period added after cast

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • Qt Creator 1.3.1
    • Qt Creator 1.3.0
    • Editors
    • None
    • Linux, AMD 64 bit
    • 0fdb3bebee7e3fa98caf333239549b28717043a8

      how to reproduce: paste this code into a new cpp file and type a period at the end.

      code: #define DEFNAME static_cast<type>(something)

      result should be: #define DEFNAME static_cast<type>(something).

      result is: An immediate segmentation fault.

      NOTE: Any type of cast (save qobject_cast) will cause an immediate segmentation fault. However, pasting in a period does not cause a segmentation fault


      example is attached.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            raggi Roberto Raggi
            gravis Gravis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes