public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33067]  New: Awkward long decimal expansion for double literal in error.
@ 2007-08-14 16:50 gcc-bugzilla at contacts dot eelis dot net
  2007-08-14 17:03 ` [Bug c++/33067] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: gcc-bugzilla at contacts dot eelis dot net @ 2007-08-14 16:50 UTC (permalink / raw)
  To: gcc-bugs

Consider:

  struct T {} t;
  bool b = 1.1 < t;

The code is invalid, but GCC's error message is peculiar:

  "error: no match for 'operator<' in
'1.100000000000000088817841970012523233890533447265625e+0 < t'"

The long decimal expansion makes for a messy error that suggests the user typed
something he did not.

It should just say:

  "error: no match for 'operator<' in '1.1 < t'"


-- 
           Summary: Awkward long decimal expansion for double literal in
                    error.
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gcc-bugzilla at contacts dot eelis dot net
  GCC host triplet: x86_64-suse-linux


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


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

end of thread, other threads:[~2011-10-11 11:04 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-33067-4@http.gcc.gnu.org/bugzilla/>
2011-10-10 10:09 ` [Bug c++/33067] Awkward long decimal expansion for double literal in error paolo.carlini at oracle dot com
2011-10-10 11:46 ` manu at gcc dot gnu.org
2011-10-10 11:49 ` manu at gcc dot gnu.org
2011-10-10 11:55 ` paolo.carlini at oracle dot com
2011-10-10 11:56 ` paolo.carlini at oracle dot com
2011-10-10 12:12 ` manu at gcc dot gnu.org
2011-10-10 12:17 ` manu at gcc dot gnu.org
2011-10-10 12:22 ` paolo.carlini at oracle dot com
2011-10-10 12:26 ` paolo.carlini at oracle dot com
2011-10-10 12:28 ` manu at gcc dot gnu.org
2011-10-10 12:34 ` paolo.carlini at oracle dot com
2011-10-10 12:38 ` paolo.carlini at oracle dot com
2011-10-10 12:46 ` paolo.carlini at oracle dot com
2011-10-10 12:46 ` manu at gcc dot gnu.org
2011-10-10 12:56 ` paolo.carlini at oracle dot com
2011-10-10 12:57 ` paolo.carlini at oracle dot com
2011-10-11 10:58 ` paolo at gcc dot gnu.org
2011-10-11 11:04 ` paolo.carlini at oracle dot com
2007-08-14 16:50 [Bug c++/33067] New: " gcc-bugzilla at contacts dot eelis dot net
2007-08-14 17:03 ` [Bug c++/33067] " pinskia at gcc dot gnu dot org
2007-08-14 17:19 ` gcc-bugzilla at contacts dot eelis dot net
2007-09-08 23:28 ` bangerth at dealii 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).