public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/57101] New: [4.8/4.9 Regression] -fcompare-debug failure with <type error>
@ 2013-04-28  9:13 zsojka at seznam dot cz
  2013-05-13 20:21 ` [Bug c++/57101] " jason at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: zsojka at seznam dot cz @ 2013-04-28  9:13 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 57101
           Summary: [4.8/4.9 Regression] -fcompare-debug failure with
                    <type error>
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 29961
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29961
autoreduced testcase

Compiler output:
$ gcc -std=c++0x -fcompare-debug testcase.C            
gcc: error: testcase.C: -fcompare-debug failure (length)

$ diff testcase.*gkd
378c378
< Declarations used by typename
{anonymous}::enable_if<{anonymous}::is_lvalue_reference<
<template-parameter-1-1> >::value, _Tp>::type {anonymous}::forward(typename
{anonymous}::identity<_Tp>::type) [with _Tp = int; typename
{anonymous}::enable_if<{anonymous}::is_lvalue_reference<
<template-parameter-1-1> >::value, _Tp>::type = int; typename
{anonymous}::identity<_Tp>::type = int], sorted by DECL_UID:
---
> Declarations used by typename {anonymous}::enable_if<{anonymous}::is_lvalue_reference< <template-parameter-1-1> >::value, _Tp>::type {anonymous}::forward(typename {anonymous}::identity<_Tp>::type) [with _Tp = int; typename {anonymous}::enable_if<{anonymous}::is_lvalue_reference< <template-parameter-1-1> >::value, _Tp>::type = <type error>; typename {anonymous}::identity<_Tp>::type = int], sorted by DECL_UID:
381c381
< ;; Function typename {anonymous}::enable_if<{anonymous}::is_lvalue_reference<
<template-parameter-1-1> >::value, _Tp>::type {anonymous}::forward(typename
{anonymous}::identity<_Tp>::type) [with _Tp = int; typename
{anonymous}::enable_if<{anonymous}::is_lvalue_reference<
<template-parameter-1-1> >::value, _Tp>::type = int; typename
{anonymous}::identity<_Tp>::type = int]
(_ZN12_GLOBAL__N_17forwardIiEENS_9enable_ifIXsrNS_19is_lvalue_referenceIT_EE5valueES3_E4typeENS_8identityIS3_E4typeE,
funcdef_no=11, cgraph_uid=7)
---
> ;; Function typename {anonymous}::enable_if<{anonymous}::is_lvalue_reference< <template-parameter-1-1> >::value, _Tp>::type {anonymous}::forward(typename {anonymous}::identity<_Tp>::type) [with _Tp = int; typename {anonymous}::enable_if<{anonymous}::is_lvalue_reference< <template-parameter-1-1> >::value, _Tp>::type = <type error>; typename {anonymous}::identity<_Tp>::type = int] (_ZN12_GLOBAL__N_17forwardIiEENS_9enable_ifIXsrNS_19is_lvalue_referenceIT_EE5valueES3_E4typeENS_8identityIS3_E4typeE, funcdef_no=11, cgraph_uid=7)

The difference is 'type = int' vs. 'type = <type error>'.

Tested revisions:
r198362 - fail
4.8 r198018 - fail
4.7 r198018 - OK


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

* [Bug c++/57101] [4.8/4.9 Regression] -fcompare-debug failure with <type error>
  2013-04-28  9:13 [Bug c++/57101] New: [4.8/4.9 Regression] -fcompare-debug failure with <type error> zsojka at seznam dot cz
@ 2013-05-13 20:21 ` jason at gcc dot gnu.org
  2013-05-15 13:28 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2013-05-13 20:21 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-05-13
                 CC|                            |hubicka at ucw dot cz,
                   |                            |jason at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
This difference is caused by varpool_remove_node clobbering the DECL_INITIAL of
integral_constant<bool, false>::value, and then dump_template_bindings trying
to use the now clobbered value in printing out the name of a function.

It seems to me that varpool_remove_node shouldn't mess with variables that can
still be used for their value in constant expressions.


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

* [Bug c++/57101] [4.8/4.9 Regression] -fcompare-debug failure with <type error>
  2013-04-28  9:13 [Bug c++/57101] New: [4.8/4.9 Regression] -fcompare-debug failure with <type error> zsojka at seznam dot cz
  2013-05-13 20:21 ` [Bug c++/57101] " jason at gcc dot gnu.org
@ 2013-05-15 13:28 ` rguenth at gcc dot gnu.org
  2013-05-31 10:58 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-05-15 13:28 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.8.1


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

* [Bug c++/57101] [4.8/4.9 Regression] -fcompare-debug failure with <type error>
  2013-04-28  9:13 [Bug c++/57101] New: [4.8/4.9 Regression] -fcompare-debug failure with <type error> zsojka at seznam dot cz
  2013-05-13 20:21 ` [Bug c++/57101] " jason at gcc dot gnu.org
  2013-05-15 13:28 ` rguenth at gcc dot gnu.org
@ 2013-05-31 10:58 ` jakub at gcc dot gnu.org
  2013-07-26 10:39 ` [Bug c++/57101] [4.8 " paolo.carlini at oracle dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-05-31 10:58 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.1                       |4.8.2

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.1 has been released.


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

* [Bug c++/57101] [4.8 Regression] -fcompare-debug failure with <type error>
  2013-04-28  9:13 [Bug c++/57101] New: [4.8/4.9 Regression] -fcompare-debug failure with <type error> zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2013-05-31 10:58 ` jakub at gcc dot gnu.org
@ 2013-07-26 10:39 ` paolo.carlini at oracle dot com
  2013-10-16  9:48 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-07-26 10:39 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.8/4.9 Regression]        |[4.8 Regression]
                   |-fcompare-debug failure     |-fcompare-debug failure
                   |with <type error>           |with <type error>
      Known to fail|4.9.0                       |

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Done.


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

* [Bug c++/57101] [4.8 Regression] -fcompare-debug failure with <type error>
  2013-04-28  9:13 [Bug c++/57101] New: [4.8/4.9 Regression] -fcompare-debug failure with <type error> zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2013-07-26 10:39 ` [Bug c++/57101] [4.8 " paolo.carlini at oracle dot com
@ 2013-10-16  9:48 ` jakub at gcc dot gnu.org
  2014-05-22  9:04 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-10-16  9:48 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.2                       |4.8.3

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.2 has been released.


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

* [Bug c++/57101] [4.8 Regression] -fcompare-debug failure with <type error>
  2013-04-28  9:13 [Bug c++/57101] New: [4.8/4.9 Regression] -fcompare-debug failure with <type error> zsojka at seznam dot cz
                   ` (4 preceding siblings ...)
  2013-10-16  9:48 ` jakub at gcc dot gnu.org
@ 2014-05-22  9:04 ` rguenth at gcc dot gnu.org
  2014-12-19 13:27 ` jakub at gcc dot gnu.org
  2015-06-23  8:42 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-05-22  9:04 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.3                       |4.8.4

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 4.8.3 is being released, adjusting target milestone.


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

* [Bug c++/57101] [4.8 Regression] -fcompare-debug failure with <type error>
  2013-04-28  9:13 [Bug c++/57101] New: [4.8/4.9 Regression] -fcompare-debug failure with <type error> zsojka at seznam dot cz
                   ` (5 preceding siblings ...)
  2014-05-22  9:04 ` rguenth at gcc dot gnu.org
@ 2014-12-19 13:27 ` jakub at gcc dot gnu.org
  2015-06-23  8:42 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-12-19 13:27 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.4                       |4.8.5

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.4 has been released.


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

* [Bug c++/57101] [4.8 Regression] -fcompare-debug failure with <type error>
  2013-04-28  9:13 [Bug c++/57101] New: [4.8/4.9 Regression] -fcompare-debug failure with <type error> zsojka at seznam dot cz
                   ` (6 preceding siblings ...)
  2014-12-19 13:27 ` jakub at gcc dot gnu.org
@ 2015-06-23  8:42 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-23  8:42 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|4.8.5                       |4.9.0
      Known to fail|                            |4.8.5

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed for 4.9.0.


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

end of thread, other threads:[~2015-06-23  8:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-28  9:13 [Bug c++/57101] New: [4.8/4.9 Regression] -fcompare-debug failure with <type error> zsojka at seznam dot cz
2013-05-13 20:21 ` [Bug c++/57101] " jason at gcc dot gnu.org
2013-05-15 13:28 ` rguenth at gcc dot gnu.org
2013-05-31 10:58 ` jakub at gcc dot gnu.org
2013-07-26 10:39 ` [Bug c++/57101] [4.8 " paolo.carlini at oracle dot com
2013-10-16  9:48 ` jakub at gcc dot gnu.org
2014-05-22  9:04 ` rguenth at gcc dot gnu.org
2014-12-19 13:27 ` jakub at gcc dot gnu.org
2015-06-23  8:42 ` rguenth 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).