hello, I ported an app on x86_64 and I isolate the class who's make a compiler
break down.

bug.C:47: internal compiler error: in fold_offsetof_1, at c-common.c:5998
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

the command line is:
g++ -c  -I/usr/X11/include -o bug.o bug.C

g++ -v
Using built-in specs.
Target: x86_64-slackware-linux
Configured with: ../gcc-4.1.1/configure --prefix=/usr --enable-shared
--enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld
--verbose --target=x86_64-slackware-linux --host=x86_64-slackware-linux
Thread model: posix
gcc version 4.1.1

// ----------------------------
// bug.h
// ----------------------------

// g++ -c  -I/usr/X11/include -o bug.o bug.C

#ifndef _BUG_H_
#define _BUG_H_

#include <X11/Intrinsic.h>

typedef char * HelpNode;

class MLXHelp {
protected:

  static Pixel highlightPixel;

  static XtResource mlxHelpResources[];

  static Pixel htPixel;



public:  
   MLXHelp(char *filename = NULL, Widget parent = NULL, HelpNode *hn = NULL);
  virtual ~MLXHelp();

};
#endif 

// ------------------------------ 
// bug.C                      
// ------------------------------

#include "bug.h"
#include <X11/StringDefs.h>


XtResource MLXHelp::mlxHelpResources [] = {
  {
    "hypertextColor", "hypertextColor", XtRPixel, sizeof(Pixel),
    XtOffsetOf(::MLXHelp, htPixel), XtRString, (XtPointer)"steelblue4"
  },
  {
    "charHighlightColor", "charHighlightColor", XtRPixel, sizeof(Pixel),
    XtOffsetOf(::MLXHelp, highlightPixel), XtRString, (XtPointer)"red"
  }
};

MLXHelp::MLXHelp(char *filename, Widget wg, HelpNode *hn)

}

MLXHelp::~MLXHelp()
{
}


-- 
           Summary: fold_offsetof_1
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lepinat at free dot fr
  GCC host triplet: linux 2.6.18.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29745

Reply via email to