[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug c++/83639] New: Vector element address problem after push_back
From:       "namdari.iman at gmail dot com" <gcc-bugzilla () gcc ! gnu ! org>
Date:       2017-12-31 13:00:15
Message-ID: bug-83639-4 () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]

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

            Bug ID: 83639
           Summary: Vector element address problem after push_back
           Product: gcc
           Version: 4.9.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: namdari.iman at gmail dot com
  Target Milestone: ---

Created attachment 42993
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42993&action=edit
A file that must be compiled.

compiled with command "g++ -std=c++11 A.cpp" on ubuntu 16.04.
In file A.cpp there is a macro __PATH0__ which specify one of the two paths
(theoretically the two paths must be identical which they're not.)
By commenting and uncommenting line 5 (define and undefine __PATH0__) we can
see the two paths are not identical (by seeing output stream) which i think is
a bug.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic