The failure comes from an internal error in the sparc_type_code routine, which 
does not really expect to be passed an OPAQUE_TYPE.  Fixed by accepting it 
like other special types.

Tested on SPARC64/Solaris, applied on the mainline.


2026-11-19  Eric Botcazou  <[email protected]>

        PR ada/128810
        * config/sparc/sparc.cc (sparc_type_code): Accept OPAQUE_TYPE.

-- 
Eric Botcazou
diff --git a/gcc/config/sparc/sparc.cc b/gcc/config/sparc/sparc.cc
index 2aa32957bac..30024b80bdc 100644
--- a/gcc/config/sparc/sparc.cc
+++ b/gcc/config/sparc/sparc.cc
@@ -9942,6 +9942,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