hi,

during compiling bmpx package (http://bmpx.backtrace.info/site)
i get an error with gcc-4.4.1:

ui-part-library.cc:512: error:
size of array 'i_toplevel' has non-integral type
'Gtk::TreeModelColumn<Bmp::AlbumArtist>'

here's the line that confuses compiler:

UID uid(
  Bmp::AlbumArtist(
    (*i_toplevel)[mStoreArtistCR.artist]
  ).bmpx_album_artist_id);

the minor reorganization of code:

Bmp::AlbumArtist aa((*i_toplevel)[mStoreArtistCR.artist]);
UID uid(aa.bmpx_album_artist_id);

and it compiles w/o errors.
mentioned error didn't occur in gcc-4.3.x. new 4.4 regression?


-- 
           Summary: size of array ... has non-integral type ...
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
 GCC build triplet: x86_64-gnu-linux
  GCC host triplet: x86_64-gnu-linux
GCC target triplet: x86_64-gnu-linux


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

Reply via email to