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

            Bug ID: 69808
           Summary: error: could not convert 'count' from 'eVeDisplayMenu'
                    to 'int'
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: martin.gansser at gmail dot com
  Target Milestone: ---

since compiling with gcc6 the following error occurs:

g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64
-mtune=generic -fPIC -c -DLIBAPIVERSION=0 -DLIBVERSION=\"0.1.0\"  -o
pluginstructure.o pluginstructure.c
In file included from coreengine/area.h:10:0,
                 from coreengine/viewelement.h:12,
                 from coreengine/viewelementplugin.h:4,
                 from coreengine/view.h:13,
                 from coreengine/viewdisplaychannel.h:4,
                 from designer.h:7,
                 from config.h:10,
                 from skindesigner.c:12:
coreengine/definitions.h:66:30: error: could not convert 'count' from
'eVeDisplayMenu' to 'int'
     timers = eVeDisplayMenu::count,
                              ^~~~~
coreengine/definitions.h:81:36: error: could not convert 'count' from
'eVeDisplayMenu' to 'int'
     detailheader = eVeDisplayMenu::count,
                                    ^~~~~
coreengine/definitions.h:510:40: error: could not convert 'count' from
'eScraperPosterBannerIT' to 'int'
     islivetv = eScraperPosterBannerIT::count,
                                        ^~~~~
coreengine/definitions.h:520:37: error: could not convert 'count' from
'eScraperPosterBannerST' to 'int'
     title = eScraperPosterBannerST::count,
                                     ^~~~~
coreengine/definitions.h:1041:31: error: could not convert 'count' from
'eScraperHeaderST' to 'int'
     title = eScraperHeaderST::count,
                               ^~~~~
coreengine/definitions.h:1056:36: error: could not convert 'count' from
'eScraperHeaderIT' to 'int'
     daynumeric = eScraperHeaderIT::count,
                                    ^~~~~
that's the part in definitions.h
...
enum class eVeDisplayMenuMain {
    timers = eVeDisplayMenu::count,
    devices,
    currentweather,
    currentschedule,
    discusage,
    systemload,
    systemmemory,
    temperatures,
    vdrstatistics,
    lastrecordings,
    customtokens,
    count
};

Reply via email to