public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13178] New: Bogus C++ error message referring to operator 1
@ 2003-11-24 18:10 ian at airs dot com
  2003-11-24 18:11 ` [Bug c++/13178] " ian at airs dot com
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: ian at airs dot com @ 2003-11-24 18:10 UTC (permalink / raw)
  To: gcc-bugs

Compiling this test case

template<typename t>
class C
{
  template<typename u> operator t() { return (u) this->i; }
  int i;
};
int fn (C<float> c) { return C<float>::operator float<int>(c); }

using the compiler in the build tree

gcc/xgcc -Bgcc/ -c ~/foo3.cc

yields this bogus error message:

/home/ian/foo3.cc: In function `int fn(C<float>)':
/home/ian/foo3.cc:7: error: no matching function for call to `C<float>::operator
1(C<float>&)'

There is obviously no ``operator 1''.  Admittedly this program is buggy, but the
error message should still be fixed.

-- 
           Summary: Bogus C++ error message referring to operator 1
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ian at airs dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2004-04-27  6:32 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-24 18:10 [Bug c++/13178] New: Bogus C++ error message referring to operator 1 ian at airs dot com
2003-11-24 18:11 ` [Bug c++/13178] " ian at airs dot com
2003-11-24 18:27 ` bangerth at dealii dot org
2003-11-24 18:32 ` ian at wasabisystems dot com
2003-11-24 18:49 ` bangerth at dealii dot org
2003-11-24 19:53 ` pinskia at gcc dot gnu dot org
2004-01-16  1:37 ` giovannibajo at libero dot it
2004-01-16  1:43 ` [Bug c++/13178] [3.4 Regression] " pinskia at gcc dot gnu dot org
2004-01-16  2:48 ` giovannibajo at libero dot it
2004-01-16  3:06 ` [Bug c++/13178] [3.3/3.4 " pinskia at gcc dot gnu dot org
2004-01-16  3:08 ` giovannibajo at libero dot it
2004-01-16  3:12 ` pinskia at gcc dot gnu dot org
2004-01-16 17:48 ` mmitchel at gcc dot gnu dot org
2004-01-16 18:40 ` [Bug c++/13178] [3.3 " mmitchel at gcc dot gnu dot org
2004-01-16 18:40 ` [Bug c++/13178] [3.3/3.4 " cvs-commit at gcc dot gnu dot org
2004-01-16 18:45 ` [Bug c++/13178] [3.3 " pinskia at gcc dot gnu dot org
2004-01-16 20:49 ` gdr at integrable-solutions dot net
2004-01-16 20:54 ` pinskia at gcc dot gnu dot org
2004-02-15 12:38 ` gdr at gcc dot gnu dot org
2004-04-27  6:44 ` gdr at gcc dot gnu dot 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).