Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-2443

GCC: _Float32, _Float64, _Float128 types

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.6
    • Fix Version/s: 6.7
    • Component/s: Clang
    • Labels:
      None

      Description

      Found in libmicrohttpd:

      test.c
      // RUN-OK: gcc-9
      // RUN-NOK: clang-9
      
      _Float32 f32;  // error: unknown type name '_Float32'
      _Float32x f32x;  // error: unknown type name '_Float32x'
      _Float64 f64;  // error: unknown type name '_Float64'
      _Float64x f64x;  // error: unknown type name '_Float64x'
      _Float128 f128;   // error: unknown type name '_Float128'
      _Float128x f128x;   // error: unknown type name '_Float128x'
      

      Found in Ruby:

      test.c
      // RUN-OK: gcc-9
      // RUN-NOK: clang-9
      
      __float80 f80; // error: unknown type name '__float80'
      

      See https://gcc.gnu.org/onlinedocs/gcc/Floating-Types.html

      GCC does not currently support _Float128x on any systems.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                massimo.paladin Massimo PALADIN
                Reporter:
                evgeny.mandrikov Evgeny Mandrikov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: