public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24052] New: &#`label_decl' not supported by dump_expr#<expression error>
@ 2005-09-25  8:48 guillaume dot melquiond at ens-lyon dot fr
  2005-09-25  8:49 ` [Bug c++/24052] " guillaume dot melquiond at ens-lyon dot fr
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: guillaume dot melquiond at ens-lyon dot fr @ 2005-09-25  8:48 UTC (permalink / raw)
  To: gcc-bugs

I do not think labels as values are widely used with C++ operators; I stumbled
over it only because of a typo (double &&). But in case of error, it will
produce a garbled message (tested from 3.3 to 4.1). For example,

a.cpp:3:no match for 'operator&&' in 'A() && &#'label_decl' not supported by
dump_expr#<expression error>'

Testcase:

struct A {};
bool operator&&(A const &, A const &);
int main() { A() && && b; }

-- 
           Summary: &#`label_decl' not supported by dump_expr#<expression
                    error>
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: guillaume dot melquiond at ens-lyon dot fr
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/24052] &#`label_decl' not supported by dump_expr#<expression error>
  2005-09-25  8:48 [Bug c++/24052] New: &#`label_decl' not supported by dump_expr#<expression error> guillaume dot melquiond at ens-lyon dot fr
@ 2005-09-25  8:49 ` guillaume dot melquiond at ens-lyon dot fr
  2005-09-25 14:51 ` [Bug c++/24052] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
  2005-09-27 16:10 ` mmitchel at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: guillaume dot melquiond at ens-lyon dot fr @ 2005-09-25  8:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From guillaume dot melquiond at ens-lyon dot fr  2005-09-25 08:49 -------
Created an attachment (id=9803)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9803&action=view)
Trivial fix

The error message is a bit better now:

a.cpp:3: error: no match for 'operator&&' in 'A() && & b'

-- 


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


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

* [Bug c++/24052] [3.4/4.0/4.1 Regression] &#`label_decl' not supported by dump_expr#<expression error>
  2005-09-25  8:48 [Bug c++/24052] New: &#`label_decl' not supported by dump_expr#<expression error> guillaume dot melquiond at ens-lyon dot fr
  2005-09-25  8:49 ` [Bug c++/24052] " guillaume dot melquiond at ens-lyon dot fr
@ 2005-09-25 14:51 ` pinskia at gcc dot gnu dot org
  2005-09-27 16:10 ` mmitchel at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-25 14:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-25 14:51 -------
Confirmed a regression from 3.2.3 which gave:
t.cc: In function `int main()':
t.cc:3: no match for `A && void*' operator
t.cc:3: candidates are: operator&&(bool, bool) <built-in>
t.cc:2:                 bool operator&&(const A&, const A&)
t.cc:3: label `b' used but not defined

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
      Known to fail|                            |3.3.3 3.4.0 4.0.0 4.1.0
      Known to work|                            |3.2.3 3.0.4 2.95.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-09-25 14:51:31
               date|                            |
            Summary|&#`label_decl' not supported|[3.4/4.0/4.1 Regression]
                   |by dump_expr#<expression    |&#`label_decl' not supported
                   |error>                      |by dump_expr#<expression
                   |                            |error>
   Target Milestone|---                         |4.0.2


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


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

* [Bug c++/24052] [3.4/4.0/4.1 Regression] &#`label_decl' not supported by dump_expr#<expression error>
  2005-09-25  8:48 [Bug c++/24052] New: &#`label_decl' not supported by dump_expr#<expression error> guillaume dot melquiond at ens-lyon dot fr
  2005-09-25  8:49 ` [Bug c++/24052] " guillaume dot melquiond at ens-lyon dot fr
  2005-09-25 14:51 ` [Bug c++/24052] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-09-27 16:10 ` mmitchel at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:10 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.2                       |4.0.3


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


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

end of thread, other threads:[~2005-09-27 16:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-25  8:48 [Bug c++/24052] New: &#`label_decl' not supported by dump_expr#<expression error> guillaume dot melquiond at ens-lyon dot fr
2005-09-25  8:49 ` [Bug c++/24052] " guillaume dot melquiond at ens-lyon dot fr
2005-09-25 14:51 ` [Bug c++/24052] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-09-27 16:10 ` mmitchel 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).