← Back to team overview

leaningtech-dev team mailing list archive

[Bug 1301017] [NEW] copying (or assigning) static object to automatic object fails to compile

 

Public bug reported:

Maybe this is related to the other open bug about static objects and
downcasting.

In the project I'm developing assigning a static object to a non static
object causes a compilation error:

LLVM ERROR: Different destination and source type for memcpy/memmove

This commit fixes the error
https://github.com/ddiproietto/nontetris/commit/94c1234617f6dfcdc7f9b6bb12734cfd93041426

While trying to reproduce the bug in a separate file I've created the testcase (attached)
which fails to compile with a different error:

Error while handling cast %struct._ZN1A1BE* bitcast (%struct._ZN1A1BE** @_ZZN1A3funEvE8auto_obj to %struct._ZN1A1BE*)
LLVM ERROR: Unsupported code found, please report a bug

** Affects: duetto
     Importance: Undecided
         Status: New

** Attachment added: "main.cpp"
   https://bugs.launchpad.net/bugs/1301017/+attachment/4059336/+files/main.cpp

-- 
You received this bug notification because you are a member of
Leaningtech Team, which is subscribed to Duetto.
https://bugs.launchpad.net/bugs/1301017

Title:
  copying (or assigning) static object to automatic object fails to
  compile

Status in Duetto: C++ for the Web:
  New

Bug description:
  Maybe this is related to the other open bug about static objects and
  downcasting.

  In the project I'm developing assigning a static object to a non
  static object causes a compilation error:

  LLVM ERROR: Different destination and source type for memcpy/memmove

  This commit fixes the error
  https://github.com/ddiproietto/nontetris/commit/94c1234617f6dfcdc7f9b6bb12734cfd93041426

  While trying to reproduce the bug in a separate file I've created the testcase (attached)
  which fails to compile with a different error:

  Error while handling cast %struct._ZN1A1BE* bitcast (%struct._ZN1A1BE** @_ZZN1A3funEvE8auto_obj to %struct._ZN1A1BE*)
  LLVM ERROR: Unsupported code found, please report a bug

To manage notifications about this bug go to:
https://bugs.launchpad.net/duetto/+bug/1301017/+subscriptions


Follow ups

References