public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13437] New: forward declaration in function scope hides inline
@ 2003-12-19  4:24 melkov at comptek dot ru
  2003-12-19  4:25 ` [Bug c++/13437] " melkov at comptek dot ru
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: melkov at comptek dot ru @ 2003-12-19  4:24 UTC (permalink / raw)
  To: gcc-bugs

/usr/local/egcs-3/bin/c++ test.cpp
/var/tmp//ccdg0amh.o: In function `main':
/var/tmp//ccdg0amh.o(.text+0x11): undefined reference to `f()'

* 'inline' removed -> OK
* f declaration removed -> OK
(2.95.4 compiles that fine)

==> test.cpp <==
inline void f() {}
int main() {
  void f();
  f();
  return 0;
}

-- 
           Summary: forward declaration in function scope hides inline
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: melkov at comptek dot ru
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-freebsd-gnu
  GCC host triplet: i686-freebsd-gnu
GCC target triplet: i686-freebsd-gnu


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


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

* [Bug c++/13437] forward declaration in function scope hides inline
  2003-12-19  4:24 [Bug c++/13437] New: forward declaration in function scope hides inline melkov at comptek dot ru
@ 2003-12-19  4:25 ` melkov at comptek dot ru
  2003-12-19  4:29 ` [Bug c++/13437] [3.3 Regression] " pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: melkov at comptek dot ru @ 2003-12-19  4:25 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |melkov at comptek dot ru


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


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

* [Bug c++/13437] [3.3 Regression] forward declaration in function scope hides inline
  2003-12-19  4:24 [Bug c++/13437] New: forward declaration in function scope hides inline melkov at comptek dot ru
  2003-12-19  4:25 ` [Bug c++/13437] " melkov at comptek dot ru
@ 2003-12-19  4:29 ` pinskia at gcc dot gnu dot org
  2003-12-19  4:38 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-19  4:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-19 04:19 -------
Confirmed on 3.3.3 but it is fixed on the mainline.  This is a regression from 2.95.3.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
   Last reconfirmed|0000-00-00 00:00:00         |2003-12-19 04:19:59
               date|                            |
            Summary|forward declaration in      |[3.3 Regression] forward
                   |function scope hides inline |declaration in function
                   |                            |scope hides inline
   Target Milestone|---                         |3.3.3


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


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

* [Bug c++/13437] [3.3 Regression] forward declaration in function scope hides inline
  2003-12-19  4:24 [Bug c++/13437] New: forward declaration in function scope hides inline melkov at comptek dot ru
  2003-12-19  4:25 ` [Bug c++/13437] " melkov at comptek dot ru
  2003-12-19  4:29 ` [Bug c++/13437] [3.3 Regression] " pinskia at gcc dot gnu dot org
@ 2003-12-19  4:38 ` pinskia at gcc dot gnu dot org
  2003-12-19  4:53 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-19  4:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-19 04:24 -------
In fact it is a regression from 3.2.3 also.

-- 


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


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

* [Bug c++/13437] [3.3 Regression] forward declaration in function scope hides inline
  2003-12-19  4:24 [Bug c++/13437] New: forward declaration in function scope hides inline melkov at comptek dot ru
                   ` (2 preceding siblings ...)
  2003-12-19  4:38 ` pinskia at gcc dot gnu dot org
@ 2003-12-19  4:53 ` pinskia at gcc dot gnu dot org
  2003-12-19  4:59 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-19  4:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-19 04:25 -------
And 3.3.1 (20030707).

-- 


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


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

* [Bug c++/13437] [3.3 Regression] forward declaration in function scope hides inline
  2003-12-19  4:24 [Bug c++/13437] New: forward declaration in function scope hides inline melkov at comptek dot ru
                   ` (3 preceding siblings ...)
  2003-12-19  4:53 ` pinskia at gcc dot gnu dot org
@ 2003-12-19  4:59 ` pinskia at gcc dot gnu dot org
  2003-12-19  5:01 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-19  4:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-19 04:29 -------
In fact the change to mess this up went in between 20030801 and 20030802.

-- 


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


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

* [Bug c++/13437] [3.3 Regression] forward declaration in function scope hides inline
  2003-12-19  4:24 [Bug c++/13437] New: forward declaration in function scope hides inline melkov at comptek dot ru
                   ` (4 preceding siblings ...)
  2003-12-19  4:59 ` pinskia at gcc dot gnu dot org
@ 2003-12-19  5:01 ` pinskia at gcc dot gnu dot org
  2003-12-19  5:25 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-19  5:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-19 04:38 -------
The patch which broke it on the mainline went in between 20030721 and 20030722.
The patch which fixed it on the mainline went in between 20030909 and 20030910.

-- 


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


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

* [Bug c++/13437] [3.3 Regression] forward declaration in function scope hides inline
  2003-12-19  4:24 [Bug c++/13437] New: forward declaration in function scope hides inline melkov at comptek dot ru
                   ` (5 preceding siblings ...)
  2003-12-19  5:01 ` pinskia at gcc dot gnu dot org
@ 2003-12-19  5:25 ` pinskia at gcc dot gnu dot org
  2003-12-29 18:48 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-19  5:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-19 04:53 -------
The only patch that went in on the mainline and the branch at the time this broke was:

2003-08-01  Geoffrey Keating  <geoffk@apple.com>
        * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
        when it's not needed.

And the only obvious patch which fixed this on the mainline is:
2003-09-09  Jan Hubicka  <jh@suse.cz>
        * varasm.c (notice_global_symbol):  Properly deal with weak symbols.

Both of these patches do not make real sense why they are causing or fixing the failures

-- 


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


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

* [Bug c++/13437] [3.3 Regression] forward declaration in function scope hides inline
  2003-12-19  4:24 [Bug c++/13437] New: forward declaration in function scope hides inline melkov at comptek dot ru
                   ` (6 preceding siblings ...)
  2003-12-19  5:25 ` pinskia at gcc dot gnu dot org
@ 2003-12-29 18:48 ` pinskia at gcc dot gnu dot org
  2004-01-29  5:03 ` gdr at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-29 18:48 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical


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


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

* [Bug c++/13437] [3.3 Regression] forward declaration in function scope hides inline
  2003-12-19  4:24 [Bug c++/13437] New: forward declaration in function scope hides inline melkov at comptek dot ru
                   ` (7 preceding siblings ...)
  2003-12-29 18:48 ` pinskia at gcc dot gnu dot org
@ 2004-01-29  5:03 ` gdr at gcc dot gnu dot org
  2004-01-29  5:09 ` pinskia at gcc dot gnu dot org
  2004-04-18 18:25 ` gdr at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-01-29  5:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-01-29 05:03 -------
Postponed until 3.3.4

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal


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


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

* [Bug c++/13437] [3.3 Regression] forward declaration in function scope hides inline
  2003-12-19  4:24 [Bug c++/13437] New: forward declaration in function scope hides inline melkov at comptek dot ru
                   ` (8 preceding siblings ...)
  2004-01-29  5:03 ` gdr at gcc dot gnu dot org
@ 2004-01-29  5:09 ` pinskia at gcc dot gnu dot org
  2004-04-18 18:25 ` gdr at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-29  5:09 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.3.3                       |3.3.4


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


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

* [Bug c++/13437] [3.3 Regression] forward declaration in function scope hides inline
  2003-12-19  4:24 [Bug c++/13437] New: forward declaration in function scope hides inline melkov at comptek dot ru
                   ` (9 preceding siblings ...)
  2004-01-29  5:09 ` pinskia at gcc dot gnu dot org
@ 2004-04-18 18:25 ` gdr at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-04-18 18:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-04-18 18:15 -------
Known to work for 3.4.0.  Won't fix for 3.3.4.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|3.3.4                       |3.4.0


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


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

end of thread, other threads:[~2004-04-18 18:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-19  4:24 [Bug c++/13437] New: forward declaration in function scope hides inline melkov at comptek dot ru
2003-12-19  4:25 ` [Bug c++/13437] " melkov at comptek dot ru
2003-12-19  4:29 ` [Bug c++/13437] [3.3 Regression] " pinskia at gcc dot gnu dot org
2003-12-19  4:38 ` pinskia at gcc dot gnu dot org
2003-12-19  4:53 ` pinskia at gcc dot gnu dot org
2003-12-19  4:59 ` pinskia at gcc dot gnu dot org
2003-12-19  5:01 ` pinskia at gcc dot gnu dot org
2003-12-19  5:25 ` pinskia at gcc dot gnu dot org
2003-12-29 18:48 ` pinskia at gcc dot gnu dot org
2004-01-29  5:03 ` gdr at gcc dot gnu dot org
2004-01-29  5:09 ` pinskia at gcc dot gnu dot org
2004-04-18 18:25 ` 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).