public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/57532] New: [4.8.1 regression] operator& broken when used on rvalues
@ 2013-06-05  7:09 kretz at kde dot org
  2013-06-05 17:04 ` [Bug c++/57532] [4.8/4.9 " jakub at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: kretz at kde dot org @ 2013-06-05  7:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 57532
           Summary: [4.8.1 regression] operator& broken when used on
                    rvalues
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kretz at kde dot org

int main()
{
    return (int() & int());
}

compile with g++ -O0 -o test main.cpp

this compiles with all compilers I know, except GCC 4.8.1


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

* [Bug c++/57532] [4.8/4.9 regression] operator& broken when used on rvalues
  2013-06-05  7:09 [Bug c++/57532] New: [4.8.1 regression] operator& broken when used on rvalues kretz at kde dot org
@ 2013-06-05 17:04 ` jakub at gcc dot gnu.org
  2013-07-09  6:40 ` jason at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-06-05 17:04 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Yeah, starting with r197315 we warned about it, r198730 fixed that (no warning
nor error), and r198842 started reporting error instead on this.


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

* [Bug c++/57532] [4.8/4.9 regression] operator& broken when used on rvalues
  2013-06-05  7:09 [Bug c++/57532] New: [4.8.1 regression] operator& broken when used on rvalues kretz at kde dot org
  2013-06-05 17:04 ` [Bug c++/57532] [4.8/4.9 " jakub at gcc dot gnu.org
@ 2013-07-09  6:40 ` jason at gcc dot gnu.org
  2013-07-09 18:52 ` jason at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2013-07-09  6:40 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org


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

* [Bug c++/57532] [4.8/4.9 regression] operator& broken when used on rvalues
  2013-06-05  7:09 [Bug c++/57532] New: [4.8.1 regression] operator& broken when used on rvalues kretz at kde dot org
  2013-06-05 17:04 ` [Bug c++/57532] [4.8/4.9 " jakub at gcc dot gnu.org
  2013-07-09  6:40 ` jason at gcc dot gnu.org
@ 2013-07-09 18:52 ` jason at gcc dot gnu.org
  2013-07-31 16:38 ` salamanderrake at gmail dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2013-07-09 18:52 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 4.8.2/4.9.


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

* [Bug c++/57532] [4.8/4.9 regression] operator& broken when used on rvalues
  2013-06-05  7:09 [Bug c++/57532] New: [4.8.1 regression] operator& broken when used on rvalues kretz at kde dot org
                   ` (2 preceding siblings ...)
  2013-07-09 18:52 ` jason at gcc dot gnu.org
@ 2013-07-31 16:38 ` salamanderrake at gmail dot com
  2013-07-31 16:48 ` paolo.carlini at oracle dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: salamanderrake at gmail dot com @ 2013-07-31 16:38 UTC (permalink / raw)
  To: gcc-bugs

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

Salamanderrake <salamanderrake at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |salamanderrake at gmail dot com

--- Comment #4 from Salamanderrake <salamanderrake at gmail dot com> ---
Is there a patch to get this working with gcc 4.8.1? How far back into the
history will the patch need to reach.


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

* [Bug c++/57532] [4.8/4.9 regression] operator& broken when used on rvalues
  2013-06-05  7:09 [Bug c++/57532] New: [4.8.1 regression] operator& broken when used on rvalues kretz at kde dot org
                   ` (3 preceding siblings ...)
  2013-07-31 16:38 ` salamanderrake at gmail dot com
@ 2013-07-31 16:48 ` paolo.carlini at oracle dot com
  2013-08-04 18:21 ` salamanderrake at gmail dot com
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-07-31 16:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Just search gcc-patches around the date of Comment #3, no?
http://gcc.gnu.org/ml/gcc-patches/2013-07/msg00372.html


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

* [Bug c++/57532] [4.8/4.9 regression] operator& broken when used on rvalues
  2013-06-05  7:09 [Bug c++/57532] New: [4.8.1 regression] operator& broken when used on rvalues kretz at kde dot org
                   ` (4 preceding siblings ...)
  2013-07-31 16:48 ` paolo.carlini at oracle dot com
@ 2013-08-04 18:21 ` salamanderrake at gmail dot com
  2013-08-04 18:32 ` salamanderrake at gmail dot com
  2013-08-05 21:38 ` jason at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: salamanderrake at gmail dot com @ 2013-08-04 18:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Salamanderrake <salamanderrake at gmail dot com> ---
I will have to patch it up to that point from gcc 4.8.1 to Comment #3, is the
main repo git or subversion?


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

* [Bug c++/57532] [4.8/4.9 regression] operator& broken when used on rvalues
  2013-06-05  7:09 [Bug c++/57532] New: [4.8.1 regression] operator& broken when used on rvalues kretz at kde dot org
                   ` (5 preceding siblings ...)
  2013-08-04 18:21 ` salamanderrake at gmail dot com
@ 2013-08-04 18:32 ` salamanderrake at gmail dot com
  2013-08-05 21:38 ` jason at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: salamanderrake at gmail dot com @ 2013-08-04 18:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Salamanderrake <salamanderrake at gmail dot com> ---
What I should have asked is what revision is gcc 4.8.1 and what revision was
the fix put into trunk?


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

* [Bug c++/57532] [4.8/4.9 regression] operator& broken when used on rvalues
  2013-06-05  7:09 [Bug c++/57532] New: [4.8.1 regression] operator& broken when used on rvalues kretz at kde dot org
                   ` (6 preceding siblings ...)
  2013-08-04 18:32 ` salamanderrake at gmail dot com
@ 2013-08-05 21:38 ` jason at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2013-08-05 21:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Salamanderrake from comment #7)
> What I should have asked is what revision is gcc 4.8.1 and what revision was
> the fix put into trunk?

svn log svn://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch
svn log svn://gcc.gnu.org/svn/gcc/tags/gcc_4_8_1_release

show that the fix went into the branch at r200836, and the release was at
r199525.  You can extract the patch from SVN with

svn diff -c200836 svn://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch

It doesn't depend on anything else since the 4.8.1 release.


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

end of thread, other threads:[~2013-08-05 21:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-05  7:09 [Bug c++/57532] New: [4.8.1 regression] operator& broken when used on rvalues kretz at kde dot org
2013-06-05 17:04 ` [Bug c++/57532] [4.8/4.9 " jakub at gcc dot gnu.org
2013-07-09  6:40 ` jason at gcc dot gnu.org
2013-07-09 18:52 ` jason at gcc dot gnu.org
2013-07-31 16:38 ` salamanderrake at gmail dot com
2013-07-31 16:48 ` paolo.carlini at oracle dot com
2013-08-04 18:21 ` salamanderrake at gmail dot com
2013-08-04 18:32 ` salamanderrake at gmail dot com
2013-08-05 21:38 ` 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).