public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/32549] Wrong template instance resolution among multiple object files. Date: Sat, 08 Sep 2007 23:53:00 -0000 [thread overview] Message-ID: <20070908235246.7937.qmail@sourceware.org> (raw) In-Reply-To: <bug-32549-14781@http.gcc.gnu.org/bugzilla/> ------- Comment #4 from bangerth at dealii dot org 2007-09-08 23:52 ------- The code is definitely invalid. The two typedefs declare two types with external linkage. This is an ODR violation making the code invalid. The standard doesn't require compilers to produce an error for a very good reason: it is almost impossible to detect this without support from a linker that understands all wrinkles and depths of the C++ language. -- bangerth at dealii dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bangerth at dealii dot org Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32549
next prev parent reply other threads:[~2007-09-08 23:53 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-06-29 17:44 [Bug c++/32549] New: " opichals at seznam dot cz 2007-06-29 17:46 ` [Bug c++/32549] " opichals at seznam dot cz 2007-06-29 19:46 ` pinskia at gcc dot gnu dot org 2007-06-30 15:05 ` opichals at seznam dot cz 2007-09-08 23:53 ` bangerth at dealii dot org [this message] 2007-09-17 11:36 ` opichals at seznam dot cz
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20070908235246.7937.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).