delivered the opinion of the court.
This is an action to recover the value of twelve acres of land •occupied by the appellant and its. predecessors in interest as a right of way for a railroad across eighty acres of land, since the year 1887.
On July 5, 1873, one Trochee, a Flathead Indian, under the Act of Congress approved June 5, 1872, selected certain lands as his allotment in the Bitter Root Valley. Thereafter a *20patent, containing restrictions against alienation of the land, was issued but never actually delivered to him. Later he consented to a sale thereof by the secretary of the interior, pursuant to the Act of Congress approved March 2, 1889. The respondent, under date of December 2, 1909, in accordance with the provisions of said Act of March 2, 1889, made application to purchase the tract of land on which is situated the right of way, and, having complied with the terms of purchase, patent was issued to him by the United States on March 23, 1913. On August 12, 1914, he commenced this action to recover the value of the land occupied by the defendant.
The defendant answered, admitting the foregoing, but denying that plaintiff was in the possession of the land occupied as right of way, and also denying the allegations of the complaint as to the value of the land so occupied. Six separate defenses were also set out in the answer: The first, alleging title in appellant to said right of way under the Act of Congress of March 3, 1875, granting to railroads the right of way through public lands of the United States; the second, alleging actual, open, peaceable, notorious, undisputed and exclusive adverse possession of the right of way, under claim of title; the third, fourth and fifth, alleging that plaintiff’s cause of action is barred by the provisions of sections 6432, 6433 and 6436 of the Revised Codes; and the sixth, alleging that respondent is es-topped and precluded from questioning the title of plaintiff to the right of way.
To this answer and to each separate defense a general demurrer was filed, which demurrer was sustained by the court as to each of said separate defenses. Thereafter a trial was ■had upon the issues raised by the pleadings and a verdict returned- in favor of respondent, and judgment duly entered. After settlement of the bill of exceptions, appeal was taken direct from the judgment.
As we understand respondent’s position, it is that Smith, by his purchase, succeeded to the rights of Trochee in the land, and that, while patent ran to Smith from the government, the *21government acted merely as trustee or agent for Trochee, and that title did not again vest in the government as proprietor after the selection by Trochee; also, the use of the right of way constituted a continuing trespass, and that while Trochee might have sued for damages caused by the trespass during the time that he was entitled to possession, not having a fee-simple title and his right to alienate the land being prohibited, he could not thereby surrender title to the right of - way to the railroad company, and the railroad company is liable to the present owner for the value of the land appropriated.
Section 3 of the Act of June 5, 1872, supra, provides: “That any of said Indians, being the head of a family, or twenty-one years of age, who shall at the passage of this Act, be actually residing upon and cultivating any portion of said lands, shall be permitted to remain in said valley and pre-empt without cost the land so occupied and cultivated, not exceeding in amount one hundred and sixty acres for each of such Indians, for which he shall receive a patent without power of alienation; Provided, that such Indian shall, prior to August first, eighteen hundred and seventy-two, notify the superintendent of Indian affairs for Montana Territory that he abandons his tribal relations with said tribe, and intends to remain in said valley: And Provided further, that said superintendent shall have given such Indian at least one month’s notice prior to the date last above mentioned of the provisions of this Act and of his right so to remain as provided in this section of this Act. ’ ’ (17 U. S. Stats, at Large, p. 226.)
By an Act of Congress, approved March 2, 1889 (25 Stats, at Large, p. 871), it was provided “that the secretary of the interior, with the consent of the Indians severally to whom patents have been issued for lands assigned to them in the Bitter Root Valley in Montana,” under the provisions of the Act of June 5, 1872, supra, “be, and he hereby is, authorized to cause to be appraised and sold all the lands allotted and patented to said Indians; * * * that the net proceeds from the sale of the lands herein authorized shall be placed in the Treasury to *22the credit of the Indians severally entitled thereto,” with authority vested in the secretary to pay the Indian patentees the purchase price received from the sale in such manner as he might deem for their best interests. Section 6 of the Act provides that in the event of the sale of such lands, the secretary of the interior shall remove the Indian whose lands may have been sold to the general reservation known as the Jocko reservation.
It is the contention of the appellant that, one of the [1] requirements of said Act of Congress of June 5, 1872, being that the allottee must signify his intention to abandon his tribal relations before being entitled to the benefits of said Act, his selection having been approved, Trochee became a citizen of the United States upon the passage and approval of the Act of February 8, 1887 (24 Stats, at Large, p. 390), section VI of which is as follows: “And every Indian born within the territorial limits of the United States to whom allotments shall have been made under the provisions of this Act, or under any law or treaty, and every Indian born without the territorial limits of the United States, who has voluntarily taken up, within said limits, his residence separate and apart from any tribe of Indians therein, and has adopted the habits of civilized life, is hereby declared to be a citizen of the United States, and is entitled to all the rights, privileges and immunities of such citizens.”
In the case of Matter of Heff, 197 U. S. 488, 49 L. Ed. 848, 25 Sup. Ct. Rep. 506, in an opinion by Mr. Justice Brewer, it was held that under said Act an Indian who has received an allotment and patent for land is no longer a ward of the government, but a citizen of the United States and of the state-in which he resides, not within the reach of Indian regulations on the part of Congress, and that this emancipation from federal control cannot be set aside without the consent of the Indian or the state, nor is it affected by the provisions of the Act subjecting the land allotted to conditions against alienation, and guaranteeing him an interest in tribal property. In the *23foregoing case the supreme court of the United States expressly approved the decisions of similar import rendered by the supreme courts of several of the states, as follows; State v. Denoyer, 6 N. D. 586, 72 N. W. 1014; State v. Norris, 37 Neb. 299, 55 N. W. 1086; Wa-La-Note-Tke-Tynin v. Carter, 6 Idaho, 85, 53 Pac. 106; In re Now-Ge-Zhuck, 69 Kan. 410, 76 Pac. 877; United States v. Rickert, 106 Fed. 1, 5; Farrell v. United States, 110 Fed. 942, 947, 49 C. C. A. 183; Boyd v. State of Nebraska (Thayer), 143 U. S. 135, 162, 36 L. Ed. 103, 12 Sup. Ct. Rep. 375.
That the Indians to whom allotments were made in the Bitter Root Valley were recognized as citizens by the secretary of the interior and the attorney general of the United States is plainly implied in the report of General Henry B. Carrington (approved by the secretary of the interior), agent of the Interior Department and special attorney for the government, acting in those capacities in obtaining the consent of the Indians to the sale of their lands by virtue of the Act of Congress of March 2, 1889, supra. (See Report of the Secretary of the Interior, Vol. 12, Senate Executive Doc., 1889-90; Doc. No. 221, 51st Congress, First Session.)
While it is true, as appears from General Carrington’s report, that the patents to such Indians were never actually delivered to the allottees (and it is conceded that none was delivered to Trochee), Trochee took the necessary steps to, and did, acquire an allotment, thereby becoming a citizen of the United States.
The said Act of February 8, 1887, was amended on May 8, 1906 (24 Stats, at Large, 390, as amended by 31 Stats, at Large, 1447; 34 Stats, at Large, 182; 3 Fed. Stats. Ann., 2d ed., p. 830), so that citizenship does not follow allotment, but is dependent upon the issuance of the second or final patent, etc. While not important here, it has been held that this amendment was not retroactive. (See State v. Lott, 21 Idaho, 646, 123 Pac. 491.)
It has been repeatedly held that by virtue of the Act of February 8, 1887, supra, Indians who have severed their tribal relations and taken allotments are citizens and entitled to in*24stitute or defend actions of ejectment or trespass in state or federal courts, regardless of the prohibition against the alienation of the lands obtained under their allotment. (Smith v. Mosgrove, 51 Or. 495, 94 Pac. 970; Wa-La-Note-Tke-Tynin v. Carter, supra; Carter v. Wann, 6 Idaho, 556, 57 Pac. 314; Bown v. Anderson (Okl.), 160 Pac. 724; Bird v. Terry, 129 Fed, 472.)
With exceedingly few exceptions, and those often founded [2] upon peculiar situations, the rule is well established that where land is taken by a corporation authorized to exercise the right of eminent domain, the right to compensation for damages accrues to the owner at once and does not pass to a subsequent purchaser by the mere conveyance of the land. (See numerous eases cited in Decennial Digest, Eminent Domain, 153, 284.)
In Roberts v. Northern Pac. R. R. Co., 158 U. S. 1, 39 L. Ed. 873, 15 Sup. Ct. Rep. 756, the court said: "So far as those portions of the lands described in the bill of complaint consist of parcels held and used by the railway company for the necessary and useful purposes of their road as a public highway, it is obvious that the title and possession thereof' cannot be successfully assailed by the appellants. The latter became purchasers long after the railroad company had entered into visible and notorious possession of these portions of the lands, and had constructed the roads, wharves and other improvements called for by their contract with the county. It is well settled that where a railroad company, having the power of eminent domain, has entered into actual possession of land necessary for its corporate purposes, whether with or without the consent of the owner of such lands, a subsequent vendee of the latter takes the land subject to the burthen of the railroad, and the right to payment from the railroad company, if it entered by virtue of an agreement to pay, or to damages, if the entry was unauthorized, belongs to the owner at the time the railroad took possession.” (See, also, Northern Pac. Ry. Co. v. Murray, 87 Fed. 648, 31 C. C. A. 183; Green v. South Bound R. Co., 112 *25Ga. 849, 38 S. E. 81; Kakeldy v. Columbia & P. S. R. Co., 37 Wash. 675, 80 Pac. 205; Maffet v. Quine, 93 Fed. 347.)
In Kakeldy v. Columbia & P. S. R. Co., supra, the plaintiff purchased the land in suit after the construction of the road. Speaking of plaintiff’s cause of action the court said: “The deeds under which he claims are in evidence. They contain no transfer to him of any right of action which his grantor may have had against the railroad- company, if he had any such. An owner of land who stands by and without protest sees a railroad constructed thereon is estopped thereafter to maintain an action in ejectment or a suit for injunction to prevent the operation of the road. His remedy is limited to an action for damages for his compensation. * * * ” (Little Bill v. Swanson, 64 Wash. 650, 117 Pac. 481; Northern Pac. R. Co. v. Smith, 171 U. S. 260, 43 L. Ed. 157, 18 Sup. Ct. Rep. 794; Donohoe v. El Paso & S. W. R. Co., 11 Ariz. 293, 94 Pac. 1091; affirmed, 214 U. S. 499, 53 L. Ed. 1060, 29 Sup. Ct. Rep. 698; Northern Pac. Ry. Co. v. Murray, supra.)
In Roberts v. Northern Pac. R. R. Co., supra, the court said: “The conclusion, therefore, seems warranted that, as to those portions of the lands in question which are occupied and used by the railroad company, the county (plaintiff’s grantor) having stood by for years and permitted the company to proceed in the construction of its road and appurtenances at a vast expense, and having accepted large sums of taxes, would be estopped from interfering with the possession of the railroad company. A fortiori, it follows that Roberts, buying with notice, could not maintain either trespass or ejectment for such portions, nor would he, as such purchaser, be entitled to recover damages for the occupation thereof. The foregoing 'observations apply only to those portions of the lands in question which have been actually occupied and used by the railroad company for corporate purposes, or, in other words, to such lands as the railroad company could have condemned by the exercise of its right of eminent domain.”
*26In this action no question is involved concerning ejectment or damages other than those arising from the actual appropriation of the land occupied as a right of way.
Plaintiff is seeking to recover the value of the land appropriated. .. This is a right which was póssesssed only by Trochee, and there is no claim upon plaintiff’s part that Trochee or the government assigned to him the right to recover such damages. His right is based solely upon the patent from the government, which, concededly, is silent as to the right of way. No assignment of his right to such damages having been made to the plaintiff, he should not recover herein.
The railroad company went into possession in 1887, and ever since has remained in open and notorious possession, having been in such possession approximately twenty-seven years at the time this action was commenced. So far as disclosed by the record (and the separate1 defenses must be taken as true upon this appeal, because standing upon the demurrers thereto), no claim or demand of any kind was made upon the railroad company, either by Trochee or the government, or the present plaintiff, prior to the issuance of the patent. Though, if Trochee or the government had seen fit, an action in trespass or ejectment could have been brought against the company at any time, unless barred by estoppel or limitation. That the plaintiff purchased with notice of defendant’s occupancy there can be no question.
Conceding, though not deciding, that an action for damages in the nature of compensation could not have been maintained by Trochee because of the restrictions upon his right to convey, prior to the issuance of final patent, we fail to see how this could benefit plaintiff. He, not having been the owner at the time of the taking of the land, may not now maintain an action for such damages.
The plaintiff not being in position to recover upon his cause of action for the reasons stated, it is unnecessary to pass upon the other questions raised.
*27The judgment is reversed, with directions to the district «ourt to dismiss the action.
Reversed.
Mr. Chief Justice Brantly and Associate Justices Holloway, Matthews and Cooper concur.