https://gcc.gnu.org/g:8a26eced09e05fdf090d75783b88bb1ae9630355

commit r17-6470-g8a26eced09e05fdf090d75783b88bb1ae9630355
Author: Eric Botcazou <[email protected]>
Date:   Thu Nov 19 16:12:42 2026 +0100

    SPARC: Fix g++.dg/reflect/null7.C
    
    The failure comes from an internal error in the sparc_type_code routine,
    which does not expect to be passed an OPAQUE_TYPE.  Fixed by accepting it
    like other special types.
    
    gcc/
            PR ada/128810
            * config/sparc/sparc.cc (sparc_type_code): Accept OPAQUE_TYPE.

Diff:
---
 gcc/config/sparc/sparc.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/config/sparc/sparc.cc b/gcc/config/sparc/sparc.cc
index ed16fa870333..56bcbffee284 100644
--- a/gcc/config/sparc/sparc.cc
+++ b/gcc/config/sparc/sparc.cc
@@ -9944,6 +9944,7 @@ sparc_type_code (tree type)
        case BOOLEAN_TYPE:      /* Boolean truth value type.  */
        case LANG_TYPE:
        case NULLPTR_TYPE:
+       case OPAQUE_TYPE:
          return qualifiers;
 
        default:

Reply via email to