public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "theodore dot papadopoulo at sophia dot inria dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/25278] g++ seems to ignore an overloaded function.
Date: Tue, 06 Dec 2005 18:46:00 -0000	[thread overview]
Message-ID: <20051206184611.28357.qmail@sourceware.org> (raw)
In-Reply-To: <bug-25278-1884@http.gcc.gnu.org/bugzilla/>



------- Comment #3 from theodore dot papadopoulo at sophia dot inria dot fr  2005-12-06 18:46 -------
(In reply to comment #0)
> The code attached does not compile since version 4.0 of gcc.
> Remove either the Cpu namespace or one element in the enumeration or replace
> the array size in RGBPixel by a constant and the bug disappears.
> 
> It looks as if g++ ignores the overload for ChangeEndianness(RGB<T>&) when it
> calls it from ChangeEndianness(T* begin,const T* end) so that the generic
> version ChangeEndianness(T& t) is called instead generating and error because
> the default class for SwapEndianness does not contain any swap method.
> 
> This has been tested with gcc version 4.2.0 20051206 (experimental).
> 
> Note also that things slightly improved since
> gcc version 4.2.0 20051124 (experimental)
> which failed also if the enumeration only had two elements (instead of three
> now).
> 
> All this is a regression since gcc-3.4.
> 


-- 

theodore dot papadopoulo at sophia dot inria dot fr changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


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


  parent reply	other threads:[~2005-12-06 18:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-06 17:37 [Bug c++/25278] New: " theodore dot papadopoulo at sophia dot inria dot fr
2005-12-06 17:39 ` [Bug c++/25278] " theodore dot papadopoulo at sophia dot inria dot fr
2005-12-06 17:48 ` pinskia at gcc dot gnu dot org
2005-12-06 18:46 ` theodore dot papadopoulo at sophia dot inria dot fr [this message]
2005-12-06 18:51 ` theodore dot papadopoulo at sophia dot inria dot fr
2005-12-06 19:27 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051206184611.28357.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).