public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53995] New: [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum>
@ 2012-07-17 11:53 rguenth at gcc dot gnu.org
  2012-07-17 11:56 ` [Bug c++/53995] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-17 11:53 UTC (permalink / raw)
  To: gcc-bugs

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: unassigned@gcc.gnu.org
        ReportedBy: rguenth@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'
...


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/53995] [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum>
  2012-07-17 11:53 [Bug c++/53995] New: [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum> rguenth at gcc dot gnu.org
@ 2012-07-17 11:56 ` rguenth at gcc dot gnu.org
  2012-07-17 12:11 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-17 11:56 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fabien at gcc dot gnu.org
      Known to work|                            |4.7.1
             Blocks|                            |51214
   Target Milestone|---                         |4.7.2
      Known to fail|                            |4.7.2

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-17 11:56:18 UTC ---
Revision 189021 is the cause.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/53995] [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum>
  2012-07-17 11:53 [Bug c++/53995] New: [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum> rguenth at gcc dot gnu.org
  2012-07-17 11:56 ` [Bug c++/53995] " rguenth at gcc dot gnu.org
@ 2012-07-17 12:11 ` rguenth at gcc dot gnu.org
  2012-07-18  2:48 ` jason at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-17 12:11 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/53995] [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum>
  2012-07-17 11:53 [Bug c++/53995] New: [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum> rguenth at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-07-18  2:48 ` jason at gcc dot gnu.org
@ 2012-07-18  2:48 ` jason at gcc dot gnu.org
  2012-07-18  2:49 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2012-07-18  2:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-18 02:48:04 UTC ---
Author: jason
Date: Wed Jul 18 02:47:59 2012
New Revision: 189598

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189598
Log:
    PR c++/53995
    * decl.c (finish_enum_value_list): Only call
    insert_late_enum_def_into_classtype_sorted_fields in class scope.

Added:
    trunk/gcc/testsuite/g++.dg/parse/enum9.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-18 02:48:21 UTC ---
Author: jason
Date: Wed Jul 18 02:48:17 2012
New Revision: 189599

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189599
Log:
    PR c++/53995
    * decl.c (finish_enum_value_list): Only call
    insert_late_enum_def_into_classtype_sorted_fields in class scope.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/parse/enum9.C
Modified:
    branches/gcc-4_7-branch/gcc/cp/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/decl.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/53995] [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum>
  2012-07-17 11:53 [Bug c++/53995] New: [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum> rguenth at gcc dot gnu.org
  2012-07-17 11:56 ` [Bug c++/53995] " rguenth at gcc dot gnu.org
  2012-07-17 12:11 ` rguenth at gcc dot gnu.org
@ 2012-07-18  2:48 ` jason at gcc dot gnu.org
  2012-07-18  2:48 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2012-07-18  2:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-18 02:48:04 UTC ---
Author: jason
Date: Wed Jul 18 02:47:59 2012
New Revision: 189598

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189598
Log:
    PR c++/53995
    * decl.c (finish_enum_value_list): Only call
    insert_late_enum_def_into_classtype_sorted_fields in class scope.

Added:
    trunk/gcc/testsuite/g++.dg/parse/enum9.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/53995] [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum>
  2012-07-17 11:53 [Bug c++/53995] New: [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum> rguenth at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2012-07-18  2:49 ` jason at gcc dot gnu.org
@ 2012-07-18  2:49 ` jason at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2012-07-18  2:49 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jason at gcc dot gnu.org
         Resolution|                            |FIXED

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-18 02:49:02 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/53995] [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum>
  2012-07-17 11:53 [Bug c++/53995] New: [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum> rguenth at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-07-18  2:48 ` jason at gcc dot gnu.org
@ 2012-07-18  2:49 ` jason at gcc dot gnu.org
  2012-07-18  2:49 ` jason at gcc dot gnu.org
  2012-07-18  2:49 ` jason at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2012-07-18  2:49 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jason at gcc dot gnu.org
         Resolution|                            |FIXED

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-18 02:48:21 UTC ---
Author: jason
Date: Wed Jul 18 02:48:17 2012
New Revision: 189599

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189599
Log:
    PR c++/53995
    * decl.c (finish_enum_value_list): Only call
    insert_late_enum_def_into_classtype_sorted_fields in class scope.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/parse/enum9.C
Modified:
    branches/gcc-4_7-branch/gcc/cp/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/decl.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-18 02:49:02 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/53995] [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum>
  2012-07-17 11:53 [Bug c++/53995] New: [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum> rguenth at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2012-07-18  2:49 ` jason at gcc dot gnu.org
@ 2012-07-18  2:49 ` jason at gcc dot gnu.org
  2012-07-18  2:49 ` jason at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2012-07-18  2:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-18 02:48:21 UTC ---
Author: jason
Date: Wed Jul 18 02:48:17 2012
New Revision: 189599

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189599
Log:
    PR c++/53995
    * decl.c (finish_enum_value_list): Only call
    insert_late_enum_def_into_classtype_sorted_fields in class scope.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/parse/enum9.C
Modified:
    branches/gcc-4_7-branch/gcc/cp/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/decl.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-07-18  2:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-17 11:53 [Bug c++/53995] New: [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum> rguenth at gcc dot gnu.org
2012-07-17 11:56 ` [Bug c++/53995] " rguenth at gcc dot gnu.org
2012-07-17 12:11 ` rguenth at gcc dot gnu.org
2012-07-18  2:48 ` jason at gcc dot gnu.org
2012-07-18  2:48 ` jason at gcc dot gnu.org
2012-07-18  2:49 ` jason at gcc dot gnu.org
2012-07-18  2:49 ` jason at gcc dot gnu.org
2012-07-18  2:49 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).