public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55058] New: [4.7/4.8 Regression] Unexpected invalid type conversion error
@ 2012-10-24 15:39 sebastian.huber@embedded-brains.de
  2012-10-24 16:06 ` [Bug c++/55058] " redi at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: sebastian.huber@embedded-brains.de @ 2012-10-24 15:39 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55058
           Summary: [4.7/4.8 Regression] Unexpected invalid type
                    conversion error
    Classification: Unclassified
           Product: gcc
           Version: 4.7.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: sebastian.huber@embedded-brains.de


Created attachment 28518
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28518
Sample code

The attached test file produces with "g++ -c test.cc" of GCC version 4.7 (e.g.
the one shipped with OpenSuse 12.2) and 4.8 the following output:

test.cc: In constructor 'C_DrvDataBuffer::C_DrvDataBuffer(ushort, ushort)':
test.cc:20748:34: error: invalid conversion from 'const T_SND_NODE
C_DrvSndDataBlock::* {aka const list_node<C_DrvSndDataBlock, with_lock,
oper_safe> C_DrvSndDataBlock::*}' to 'list_node<C_DrvSndDataBlock, with_lock,
oper_safe> C_DrvSndDataBlock::*' [-fpermissive]
test.cc:16667:1: error:   initializing argument 1 of 'list_base<
<template-parameter-1-1>, <template-parameter-1-2>, test_,
amp_>::list_base(const T_C_NODE_ T_::*, const char*, bool) [with T_ =
C_DrvSndDataBlock; lock_ = with_lock; test_ = oper_safe; bool amp_ = false;
list_base< <template-parameter-1-1>, <template-parameter-1-2>, test_,
amp_>::T_C_NODE_ = list_node<C_DrvSndDataBlock, with_lock, oper_safe>]'
[-fpermissive]
test.cc:20748:34: error: invalid conversion from 'const T_SND_NODE
C_DrvSndDataBlock::* {aka const list_node<C_DrvSndDataBlock, with_lock,
oper_safe> C_DrvSndDataBlock::*}' to 'list_node<C_DrvSndDataBlock, with_lock,
oper_safe> C_DrvSndDataBlock::*' [-fpermissive]
test.cc:16667:1: error:   initializing argument 1 of 'list_base<
<template-parameter-1-1>, <template-parameter-1-2>, test_,
amp_>::list_base(const T_C_NODE_ T_::*, const char*, bool) [with T_ =
C_DrvSndDataBlock; lock_ = with_lock; test_ = oper_safe; bool amp_ = false;
list_base< <template-parameter-1-1>, <template-parameter-1-2>, test_,
amp_>::T_C_NODE_ = list_node<C_DrvSndDataBlock, with_lock, oper_safe>]'
[-fpermissive]
test.cc:20748:34: error: invalid conversion from 'const T_RCV_NODE
C_DrvRcvDataBlock::* {aka const list_node<C_DrvRcvDataBlock, with_lock,
oper_safe> C_DrvRcvDataBlock::*}' to 'list_node<C_DrvRcvDataBlock, with_lock,
oper_safe> C_DrvRcvDataBlock::*' [-fpermissive]
test.cc:16667:1: error:   initializing argument 1 of 'list_base<
<template-parameter-1-1>, <template-parameter-1-2>, test_,
amp_>::list_base(const T_C_NODE_ T_::*, const char*, bool) [with T_ =
C_DrvRcvDataBlock; lock_ = with_lock; test_ = oper_safe; bool amp_ = false;
list_base< <template-parameter-1-1>, <template-parameter-1-2>, test_,
amp_>::T_C_NODE_ = list_node<C_DrvRcvDataBlock, with_lock, oper_safe>]'
[-fpermissive]

The test code can be compiled with the Comeau-Online-Compiler:

http://www.comeaucomputing.com/tryitout

The GCC 4.6 works also.


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

end of thread, other threads:[~2012-12-07  5:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-24 15:39 [Bug c++/55058] New: [4.7/4.8 Regression] Unexpected invalid type conversion error sebastian.huber@embedded-brains.de
2012-10-24 16:06 ` [Bug c++/55058] " redi at gcc dot gnu.org
2012-10-24 16:12 ` sebastian.huber@embedded-brains.de
2012-10-25 11:15 ` rguenth at gcc dot gnu.org
2012-10-25 11:43 ` sebastian.huber@embedded-brains.de
2012-10-25 12:04 ` redi at gcc dot gnu.org
2012-10-26 13:28 ` sebastian.huber@embedded-brains.de
2012-10-30  9:18 ` sebastian.huber@embedded-brains.de
2012-11-07 15:13 ` paolo.carlini at oracle dot com
2012-12-06 16:08 ` rguenth at gcc dot gnu.org
2012-12-07  4:55 ` jason at gcc dot gnu.org
2012-12-07  5:13 ` jason at gcc dot gnu.org
2012-12-07  5:16 ` 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).