public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/38754] New: C99 and inline has a linker problem
@ 2009-01-07 14:27 klein at cage dot ugent dot be
2009-01-07 14:37 ` [Bug c/38754] " rguenth at gcc dot gnu dot org
2009-01-07 14:38 ` rguenth at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: klein at cage dot ugent dot be @ 2009-01-07 14:27 UTC (permalink / raw)
To: gcc-bugs
More a liker than compiler problem
When I compile the following programm with gcc -std=c99 I get a linker error.
When I compile it with gcc -O[23] -std=c99 it runs as expected.
For the case that the system matters: I am using Linux (Ubuntu 8.10)
inline void f() {
}
int main() {
f();
}
--
Summary: C99 and inline has a linker problem
Product: gcc
Version: 4.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: klein at cage dot ugent dot be
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38754
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/38754] C99 and inline has a linker problem
2009-01-07 14:27 [Bug c/38754] New: C99 and inline has a linker problem klein at cage dot ugent dot be
@ 2009-01-07 14:37 ` rguenth at gcc dot gnu dot org
2009-01-07 14:38 ` rguenth at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-07 14:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-01-07 14:36 -------
You need an external definition of f.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38754
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/38754] C99 and inline has a linker problem
2009-01-07 14:27 [Bug c/38754] New: C99 and inline has a linker problem klein at cage dot ugent dot be
2009-01-07 14:37 ` [Bug c/38754] " rguenth at gcc dot gnu dot org
@ 2009-01-07 14:38 ` rguenth at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-07 14:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2009-01-07 14:38 -------
See 6.7.4, especially the example in paragraph 7 and the explanation in 8.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38754
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-07 14:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-07 14:27 [Bug c/38754] New: C99 and inline has a linker problem klein at cage dot ugent dot be
2009-01-07 14:37 ` [Bug c/38754] " rguenth at gcc dot gnu dot org
2009-01-07 14:38 ` rguenth 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).