public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33494]  New: [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr
@ 2007-09-19  6:49 reichelt at gcc dot gnu dot org
  2007-09-19  6:49 ` [Bug c++/33494] " reichelt at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-09-19  6:49 UTC (permalink / raw)
  To: gcc-bugs

The C++ frontend generates a broken diagnostic for the following code
snippet since GCC 3.4.0:

==============================================
template<int> void foo(int(*f=0)());
==============================================

bug.cc:1: error: variable or field 'foo' declared void
bug.cc:1: error: 'f' was not declared in this scope
bug.cc:1: error: '(int)(#'modop_expr' not supported by dump_expr#<expression
error>)' cannot be used as a function

Another testcase for the unsupported 'modop_expr' is the following:

==============================================
template<int> struct A
{
  int i;
  typeof(A = A()) i;
};
==============================================

bug.cc:2: error: expected primary-expression before '=' token
bug.cc:2: error: declaration of '__typeof__ (#'modop_expr' not supported by
dump_expr#<expression error>) A<<anonymous> >::i'
bug.cc:1: error: conflicts with previous declaration 'int A<<anonymous> >::i'


-- 
           Summary: [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr'
                    not supported by dump_expr
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

end of thread, other threads:[~2008-07-04 16:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-19  6:49 [Bug c++/33494] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
2007-09-19  6:49 ` [Bug c++/33494] " reichelt at gcc dot gnu dot org
2007-09-28  4:10 ` mmitchel at gcc dot gnu dot org
2007-10-29 11:04 ` pcarlini at suse dot de
2007-11-01  2:17 ` paolo at gcc dot gnu dot org
2007-11-01  2:19 ` paolo at gcc dot gnu dot org
2007-11-01  2:20 ` [Bug c++/33494] [4.1/4.2 " pcarlini at suse dot de
2008-01-02 23:57 ` reichelt at gcc dot gnu dot org
2008-01-03  1:52 ` [Bug c++/33494] [4.1 " reichelt at gcc dot gnu dot org
2008-07-04 16:15 ` jsm28 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).