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

--- Comment #2 from dave.anglin at bell dot net ---
> Does this work now?


The ICE can be avoided by changing the register to one that can be fixed on
hppa.  For example,

dave@mx3210:~/gnu/gcc/gcc/gcc/testsuite$ svn diff g++.dg/parse/parens3.C
Index: g++.dg/parse/parens3.C
===================================================================
--- g++.dg/parse/parens3.C      (revision 232649)
+++ g++.dg/parse/parens3.C      (working copy)
@@ -5,7 +5,12 @@
   int i;
 };

+#ifdef __hppa__ 
+/* Register %r1 can't be fixed when generating PIC code.  */
+register struct s *reg __asm__( "4" );
+#else
 register struct s *reg __asm__( "1" );
+#endif

 int f(void)
 {

However, this doesn't fix the ICE.  There should be some kind of error message.

Dave
--
John David Anglin       dave.ang...@bell.net

Reply via email to