public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/64570] New: error: non-trivial conversion at assignment
@ 2015-01-12 19:35 dcb314 at hotmail dot com
  2015-01-13  9:46 ` [Bug c++/64570] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dcb314 at hotmail dot com @ 2015-01-12 19:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64570
           Summary: error: non-trivial conversion at assignment
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com

Created attachment 34427
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34427&action=edit
gzipped C++ source code

I just tried to compile the attached C++ code with the latest trunk
dated 20150111 on a Fedora Linux x86_64 box.

The compiler said

src/ide/HDCommand.cc: In member function ‘virtual void
openmsx::HDCommand::tabCo
mpletion(std::vector<std::__cxx11::basic_string<char> >&) const’:
src/ide/HDCommand.cc:76:6: error: non-trivial conversion at assignment
long unsigned int
const char[7] *
# .MEM_123 = VDEF <.MEM_120>
MEM[(char * {ref-all})_89] = _30;
src/ide/HDCommand.cc:76:6: internal compiler error: verify_gimple failed
0xc9bcff verify_gimple_in_cfg(function*, bool)
    ../../src/trunk/gcc/tree-cfg.c:5056
0xb6ce4e execute_function_todo(function*, void*)
    ../../src/trunk/gcc/passes.c:1946
0xb6b969 execute_todo(unsigned int)
    ../../src/trunk/gcc/passes.c:2003
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Flags -O2 -std=gnu++0x required. This bug might be related to #59630.
>From gcc-bugs-return-472848-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jan 12 19:39:44 2015
Return-Path: <gcc-bugs-return-472848-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15209 invoked by alias); 12 Jan 2015 19:39:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 15173 invoked by uid 48); 12 Jan 2015 19:39:38 -0000
From: "reichelt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/64571] New: [5.0 Regression] Link failure with fstream due to new string implementation
Date: Mon, 12 Jan 2015 19:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: reichelt at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc
Message-ID: <bug-64571-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-01/txt/msg00842.txt.bz2
Content-length: 2460

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd571

            Bug ID: 64571
           Summary: [5.0 Regression] Link failure with fstream due to new
                    string implementation
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: reichelt at gcc dot gnu.org
                CC: redi at gcc dot gnu.org

The following valid program (compiled with -std=c++11) fails to link using
trunk since 2014-12-19:

======================================#include <fstream>

int main()
{
  const std::string s = "MyFile.txt";

  std::fstream fs1(s);
  fs1.close();
  fs1.open(s);
  fs1.close();

  std::ifstream fs2(s);
  fs2.close();
  fs2.open(s);
  fs2.close();

  std::ofstream fs3(s);
  fs3.close();
  fs3.open(s);
  fs3.close();

  return 0;
}
======================================
/tmp/ccSD2wgR.o: In function `main':
StringBug.cc:(.text+0x62): undefined reference to `std::basic_fstream<char,
std::char_traits<char> >::basic_fstream(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)'
StringBug.cc:(.text+0x9b): undefined reference to `std::basic_fstream<char,
std::char_traits<char> >::open(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)'
StringBug.cc:(.text+0xb9): undefined reference to `std::basic_ifstream<char,
std::char_traits<char> >::basic_ifstream(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)'
StringBug.cc:(.text+0xe6): undefined reference to `std::basic_ifstream<char,
std::char_traits<char> >::open(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)'
StringBug.cc:(.text+0x110): undefined reference to `std::basic_ofstream<char,
std::char_traits<char> >::basic_ofstream(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)'
StringBug.cc:(.text+0x149): undefined reference to `std::basic_ofstream<char,
std::char_traits<char> >::open(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)'
collect2: error: ld returned 1 exit status

This is related to PR64422 and PR64449.


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

* [Bug c++/64570] error: non-trivial conversion at assignment
  2015-01-12 19:35 [Bug c++/64570] New: error: non-trivial conversion at assignment dcb314 at hotmail dot com
@ 2015-01-13  9:46 ` rguenth at gcc dot gnu.org
  2015-03-23 11:59 ` dcb314 at hotmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-01-13  9:46 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
          Component|tree-optimization           |c++
      Known to fail|                            |4.7.4, 4.8.3, 4.9.2, 5.0

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fails everywhere, 4.6 rejects the testcase.  Looks more like a C++ frontend
issue to me.


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

* [Bug c++/64570] error: non-trivial conversion at assignment
  2015-01-12 19:35 [Bug c++/64570] New: error: non-trivial conversion at assignment dcb314 at hotmail dot com
  2015-01-13  9:46 ` [Bug c++/64570] " rguenth at gcc dot gnu.org
@ 2015-03-23 11:59 ` dcb314 at hotmail dot com
  2015-03-23 12:02 ` trippels at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dcb314 at hotmail dot com @ 2015-03-23 11:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from David Binderman <dcb314 at hotmail dot com> ---
Seems ok with trunk dated 20150322.


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

* [Bug c++/64570] error: non-trivial conversion at assignment
  2015-01-12 19:35 [Bug c++/64570] New: error: non-trivial conversion at assignment dcb314 at hotmail dot com
  2015-01-13  9:46 ` [Bug c++/64570] " rguenth at gcc dot gnu.org
  2015-03-23 11:59 ` dcb314 at hotmail dot com
@ 2015-03-23 12:02 ` trippels at gcc dot gnu.org
  2015-03-23 13:01 ` dcb314 at hotmail dot com
  2015-04-08  9:17 ` mpolacek at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-03-23 12:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to David Binderman from comment #4)
> Seems ok with trunk dated 20150322.

No, it still fails. You're probably using an --enable-checking=release
compiler...


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

* [Bug c++/64570] error: non-trivial conversion at assignment
  2015-01-12 19:35 [Bug c++/64570] New: error: non-trivial conversion at assignment dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2015-03-23 12:02 ` trippels at gcc dot gnu.org
@ 2015-03-23 13:01 ` dcb314 at hotmail dot com
  2015-04-08  9:17 ` mpolacek at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: dcb314 at hotmail dot com @ 2015-03-23 13:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Markus Trippelsdorf from comment #5)
> No, it still fails. You're probably using an --enable-checking=release
> compiler...

Indeed I am, sorry for the false alarm.


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

* [Bug c++/64570] error: non-trivial conversion at assignment
  2015-01-12 19:35 [Bug c++/64570] New: error: non-trivial conversion at assignment dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2015-03-23 13:01 ` dcb314 at hotmail dot com
@ 2015-04-08  9:17 ` mpolacek at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-04-08  9:17 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |mpolacek at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Looks like a dup.

*** This bug has been marked as a duplicate of bug 65554 ***


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

end of thread, other threads:[~2015-04-08  9:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-12 19:35 [Bug c++/64570] New: error: non-trivial conversion at assignment dcb314 at hotmail dot com
2015-01-13  9:46 ` [Bug c++/64570] " rguenth at gcc dot gnu.org
2015-03-23 11:59 ` dcb314 at hotmail dot com
2015-03-23 12:02 ` trippels at gcc dot gnu.org
2015-03-23 13:01 ` dcb314 at hotmail dot com
2015-04-08  9:17 ` mpolacek 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).