From: Sergey Vlasov <vsu@altlinux.ru>
To: community@altlinux.ru
Subject: Re: Re[2]: [Comm] [JT] gcc bug ?
Date: Thu, 30 Jan 2003 17:55:05 +0300
Message-ID: <20030130175505.144fb483.vsu@altlinux.ru> (raw)
In-Reply-To: <12052642716.20030129222708@udm.ru>
On Wed, 29 Jan 2003 22:27:08 +0400
ASA <llb@udm.ru> wrote:
> SV> несколько другая ситуация. Я, например, делал для прикола абсолютно
> SV> корректный файл C++ строк на 40, при компиляции которого gcc-2.96
> SV> сжирал около 300М.
> А можно на этот файл посмотреть? ;)
Тот файл я не принёс - вот сейчас другой аналогичный сляпал. На нём
gcc-3.2.1 разрастается где-то до 530M, генерируя в результате (gcc -S
explode.cpp) всего-то около килобайта ассемблерного кода. :-)
=== begin explode.cpp ===
template <class X, class Y, class Z>
struct Types {
};
template <int n>
struct Generator {
typedef Generator<n-1> prev;
typedef typename prev::type prev_type;
typedef Types<prev_type, prev_type, prev_type> type;
};
template <>
struct Generator<0> {
typedef int type;
};
void test(Generator<15>::type const &)
{
}
=== end explode.cpp ===
prev parent reply other threads:[~2003-01-30 14:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-29 8:12 Igor Homyakov
2003-01-29 8:36 ` Nikolay Kartsev
2003-01-29 9:22 ` Igor Homyakov
2003-01-30 0:25 ` [Comm] " Alexey Tourbin
2003-01-30 11:59 ` Igor Homyakov
2003-01-29 8:50 ` [Comm] [JT] " Vitaly Lipatov
2003-01-29 12:57 ` Sergey Vlasov
2003-01-29 18:27 ` Re[2]: " ASA
2003-01-30 14:55 ` Sergey Vlasov [this message]
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=20030130175505.144fb483.vsu@altlinux.ru \
--to=vsu@altlinux.ru \
--cc=community@altlinux.ru \
/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: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git