public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26115]  New: [4.2 Regression] bogus warning for g++.dg/parse/register1.C
@ 2006-02-06  5:27 pinskia at gcc dot gnu dot org
  2006-02-06  5:27 ` [Bug c++/26115] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-06  5:27 UTC (permalink / raw)
  To: gcc-bugs

/Users/pinskia/src/gcc/local/gcc/gcc/testsuite/g++.dg/parse/register1.C:13:
warning: address requested for 'x', which is declared 'register'

That is a bogus warning.


-- 
           Summary: [4.2 Regression] bogus warning for
                    g++.dg/parse/register1.C
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


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

* [Bug c++/26115] [4.2 Regression] bogus warning for g++.dg/parse/register1.C
  2006-02-06  5:27 [Bug c++/26115] New: [4.2 Regression] bogus warning for g++.dg/parse/register1.C pinskia at gcc dot gnu dot org
@ 2006-02-06  5:27 ` pinskia at gcc dot gnu dot org
  2006-02-06  5:38 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-06  5:27 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.2.0


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


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

* [Bug c++/26115] [4.2 Regression] bogus warning for g++.dg/parse/register1.C
  2006-02-06  5:27 [Bug c++/26115] New: [4.2 Regression] bogus warning for g++.dg/parse/register1.C pinskia at gcc dot gnu dot org
  2006-02-06  5:27 ` [Bug c++/26115] " pinskia at gcc dot gnu dot org
@ 2006-02-06  5:38 ` pinskia at gcc dot gnu dot org
  2006-02-06 11:51 ` hp at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-06  5:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-06 05:38 -------
g++.old-deja/g++.brendan/warnings4.C has a similar warning:
FAIL: g++.old-deja/g++.brendan/warnings4.C (test for excess errors)
Excess
errors:/Users/pinskia/src/gcc/local/gcc/gcc/testsuite/g++.old-deja/g++.brendan/warnings4.C:7:
warning: address requested for 'x', which is declared 'register'


-- 


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


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

* [Bug c++/26115] [4.2 Regression] bogus warning for g++.dg/parse/register1.C
  2006-02-06  5:27 [Bug c++/26115] New: [4.2 Regression] bogus warning for g++.dg/parse/register1.C pinskia at gcc dot gnu dot org
  2006-02-06  5:27 ` [Bug c++/26115] " pinskia at gcc dot gnu dot org
  2006-02-06  5:38 ` pinskia at gcc dot gnu dot org
@ 2006-02-06 11:51 ` hp at gcc dot gnu dot org
  2006-02-06 15:05 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: hp at gcc dot gnu dot org @ 2006-02-06 11:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hp at gcc dot gnu dot org  2006-02-06 11:51 -------
Confirmed for mmix-knuth-mmixware, cris-axis-elf and cris-axis-linux-gnu,
passes with 110520, fails with 110613.


-- 

hp at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hp at gcc dot gnu dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-02-06 11:51:40
               date|                            |


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


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

* [Bug c++/26115] [4.2 Regression] bogus warning for g++.dg/parse/register1.C
  2006-02-06  5:27 [Bug c++/26115] New: [4.2 Regression] bogus warning for g++.dg/parse/register1.C pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-02-06 11:51 ` hp at gcc dot gnu dot org
@ 2006-02-06 15:05 ` pinskia at gcc dot gnu dot org
  2006-02-12 20:45 ` jsm28 at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-06 15:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-02-06 15:05 -------
*** Bug 26130 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |danglin at gcc dot gnu dot
                   |                            |org


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


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

* [Bug c++/26115] [4.2 Regression] bogus warning for g++.dg/parse/register1.C
  2006-02-06  5:27 [Bug c++/26115] New: [4.2 Regression] bogus warning for g++.dg/parse/register1.C pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-02-06 15:05 ` pinskia at gcc dot gnu dot org
@ 2006-02-12 20:45 ` jsm28 at gcc dot gnu dot org
  2006-03-03 18:16 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2006-02-12 20:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jsm28 at gcc dot gnu dot org  2006-02-12 20:45 -------
Passed with revision 110539, fails with 110584.


-- 


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


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

* [Bug c++/26115] [4.2 Regression] bogus warning for g++.dg/parse/register1.C
  2006-02-06  5:27 [Bug c++/26115] New: [4.2 Regression] bogus warning for g++.dg/parse/register1.C pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-02-12 20:45 ` jsm28 at gcc dot gnu dot org
@ 2006-03-03 18:16 ` pinskia at gcc dot gnu dot org
  2006-03-30  1:07 ` janis at gcc dot gnu dot org
  2006-04-19 21:54 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-03 18:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-03-03 18:16 -------
Caused by:
+2006-02-03  Lee Millward  <lee.millward@gmail.com>
+
+       * typeck.c (string_conv_p): Pass appropiate
+       OPT_Wxxxx values when calling warning().
+       (build_array_ref, cxx_mark_addressable): Likewise.
+       (check_return_expr): Likewise.
+
+       * init.c (perform_member_init): Likewise.
+       (sort_mem_initializers, emit_mem_initializers): Likewise.
+
+       * class.c (check_field_decls): Likewise.
+       (warn_about_ambiguous_bases): Likewise.
+
+       * decl.c (pop_label, poplevel): Likewise.
+       (duplicate_decls, grok_op_properties): Likewise.
+       (start_preparsed_function, finish_function): Likewise.
+
+       * name-lookup.c (pushdecl_maybe_friend): Likewise.
+       (pushdecl_maybe_friend): Likewise.
+
+       * parser.c (cp_parser_warn_min_max): Likewise.
+       (cp_parser_cast_expression): Likewise.
+
+       * method.c (lazily_declare_fn): Likewise.
+       * cvt.c (convert_to_void): Likewise.
+       * mangle.c (finish_mangling): Likewise.
+       * cp-gimplify.c (gimplify_expr_stmt): Likewise.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lmillward at gcc dot gnu dot
                   |                            |org


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


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

* [Bug c++/26115] [4.2 Regression] bogus warning for g++.dg/parse/register1.C
  2006-02-06  5:27 [Bug c++/26115] New: [4.2 Regression] bogus warning for g++.dg/parse/register1.C pinskia at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-03-03 18:16 ` pinskia at gcc dot gnu dot org
@ 2006-03-30  1:07 ` janis at gcc dot gnu dot org
  2006-04-19 21:54 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: janis at gcc dot gnu dot org @ 2006-03-30  1:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from janis at gcc dot gnu dot org  2006-03-30 01:07 -------
The patch that Lee checked in removed checks for extra_warnings before the
calls to warnings with OPT_Wextra in typeck.c and class.c.  If those checks are
restored then the five test cases listed in this PR and in 26114 pass.  There's
still a bug that Lee's code exposed, but putting the conditions back will let
the tests pass again.  Sorry, I don't have a fully-tested patch and am about to
be out of touch for over a week.


-- 


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


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

* [Bug c++/26115] [4.2 Regression] bogus warning for g++.dg/parse/register1.C
  2006-02-06  5:27 [Bug c++/26115] New: [4.2 Regression] bogus warning for g++.dg/parse/register1.C pinskia at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-03-30  1:07 ` janis at gcc dot gnu dot org
@ 2006-04-19 21:54 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-19 21:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2006-04-19 21:54 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2006-04-19 21:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-06  5:27 [Bug c++/26115] New: [4.2 Regression] bogus warning for g++.dg/parse/register1.C pinskia at gcc dot gnu dot org
2006-02-06  5:27 ` [Bug c++/26115] " pinskia at gcc dot gnu dot org
2006-02-06  5:38 ` pinskia at gcc dot gnu dot org
2006-02-06 11:51 ` hp at gcc dot gnu dot org
2006-02-06 15:05 ` pinskia at gcc dot gnu dot org
2006-02-12 20:45 ` jsm28 at gcc dot gnu dot org
2006-03-03 18:16 ` pinskia at gcc dot gnu dot org
2006-03-30  1:07 ` janis at gcc dot gnu dot org
2006-04-19 21:54 ` pinskia 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).