trying to build gcc for arm-eabi with --enable-build-with-cxx fails with
'structure 'key' with uninitialized const members'.  However, a normal C-based
bootstrap does not report this as a warning when -Wc++-compat is used.

struct f
{
  const int a;
};

void g(struct f*);

void h ()
{
struct f h;
g(&h);
}


-- 
           Summary: Missing warning from -Wc++-compat
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rearnsha at gcc dot gnu dot org
GCC target triplet: arm-eabi


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

Reply via email to