Bug 147385
| Summary: | Compiler error in gcc 3.4 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Christian Lessig <christian.lessig> | ||||||||
| Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||||||
| Status: | CLOSED UPSTREAM | QA Contact: | |||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | medium | ||||||||||
| Version: | 3 | ||||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | i386 | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2005-02-07 21:58:40 UTC | Type: | --- | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Christian Lessig
2005-02-07 20:22:02 UTC
Created attachment 110747 [details]
Preprocessed source
Created attachment 110748 [details]
Preprocessed source
Created attachment 110749 [details]
Source code
Attached the source file. The lines above the error causing code (ln. 66 and
ln. 72) are accepted by the compiler.
Regards,
Christian Lessig
Fraunhofer IGD / Bauhaus-Universität Weimar
Simplified testcase:
extern double foo (double);
template <class T>
struct A
{
T y () const;
};
typedef A <float> B;
template <unsigned int T>
struct C
{
C ();
B c;
float r;
};
template <unsigned int T>
C<T>::C ()
{
r = foo (c.y);
}
G++ 3.4 ICEs on this, G++ 3.2 accepts it, G++ CVS HEAD rejects it with:
147385.ii: In constructor <T>::C()':
147385.ii:22: error: not enough type information
Given that this is ICE on invalid as far as I can judge (you want cartesian.y () instead of cartesian.y and similarly for x and z), I'm moving this upstream. |