http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53995
Bug #: 53995 Summary: [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum> Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: rgue...@gcc.gnu.org Target: x86_64-*-* Created attachment 27812 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27812 testcase wt fails to build on the GCC 4.7 branch now with /usr/lib64/gcc/x86_64-suse-linux/4.7/cc1plus -fpreprocessed WChart2DRenderer.ii -quiet -dumpbase WChart2DRenderer.C -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/wt.dir/Wt/Chart/WChart2DRenderer.o -g -g -O2 -O2 -Wall -version -fmessage-length=0 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC -o WChart2DRenderer.s GNU C++ (SUSE Linux) version 4.7.1 20120713 [gcc-4_7-branch revision 189457] (x86_64-suse-linux) compiled by GNU C version 4.7.1 20120713 [gcc-4_7-branch revision 189457], GMP version 5.0.5, MPFR version 3.1.1, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C++ (SUSE Linux) version 4.7.1 20120713 [gcc-4_7-branch revision 189457] (x86_64-suse-linux) compiled by GNU C version 4.7.1 20120713 [gcc-4_7-branch revision 189457], GMP version 5.0.5, MPFR version 3.1.1, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 90ee474bd1a40375316ad24ac9499226 /home/abuild/rpmbuild/BUILD/wt-3.2.0/src/Wt/Chart/WChart2DRenderer.C: In member function 'virtual void Wt::Chart::WChart2DRenderer::renderLegend()': /home/abuild/rpmbuild/BUILD/wt-3.2.0/src/Wt/Chart/WChart2DRenderer.C:1395:34: error: no matching function for call to 'Wt::Chart::WCartesianChart::plotAreaPadding(Wt::Chart::WChart2DRenderer::renderAxis(const Wt::Chart::WAxis&, Wt::WFlags<Wt::Chart::WChart2DRenderer::AxisProperty>)::<anonymous enum>)' /home/abuild/rpmbuild/BUILD/wt-3.2.0/src/Wt/Chart/WChart2DRenderer.C:1395:34: note: candidate is: In file included from /home/abuild/rpmbuild/BUILD/wt-3.2.0/src/Wt/Chart/WCartesianChart:10:0, from /home/abuild/rpmbuild/BUILD/wt-3.2.0/src/Wt/Chart/WChart2DRenderer.C:10: /home/abuild/rpmbuild/BUILD/wt-3.2.0/src/Wt/Chart/WAbstractChart:129:7: note: int Wt::Chart::WAbstractChart::plotAreaPadding(Wt::Side) const /home/abuild/rpmbuild/BUILD/wt-3.2.0/src/Wt/Chart/WAbstractChart:129:7: note: no known conversion for argument 1 from 'Wt::Chart::WChart2DRenderer::renderAxis(const Wt::Chart::WAxis&, Wt::WFlags<Wt::Chart::WChart2DRenderer::AxisProperty>)::<anonymous enum>' to 'Wt::Side' ...