This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/32549] Wrong template instance resolution among multiple object files.



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-06-29 19:45 -------
I don't think this is a bug.
So we have in one TU:
typedef struct {
        char x[10];
} Argument;
And in the other:
typedef struct {
        char x[20];
} Argument;
--------------- cut ---------------
IIRC from my reading of the C++ standard, that Argument here has to be same
types accross TUs (the One Definition Rule).


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]